1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 15:47:28 +00:00
nixpkgs/pkgs/applications/video/tartube/default.nix
ryneeverett 905e3baa7e tartube: 2.1.0 -> 2.3.042
- Add new ffmpeg dependency.
- Update patch since gi was renamed pgi.
2021-01-04 17:47:43 +00:00

77 lines
1.4 KiB
Nix

{ stdenv
, lib
, fetchFromGitHub
, gdk-pixbuf
, gobject-introspection
, gtk3
, libnotify
, pango
, python3Packages
, wrapGAppsHook
, youtube-dl
, glib
, ffmpeg
}:
python3Packages.buildPythonApplication rec {
pname = "tartube";
version = "2.3.042";
src = fetchFromGitHub {
owner = "axcore";
repo = "tartube";
rev = "v${version}";
sha256 = "117q4s2b2js3204506qv3kjcsy3amcf0mpwj6q0ixs1256ilkxwj";
};
nativeBuildInputs = [
gobject-introspection
wrapGAppsHook
];
strictDeps = false;
propagatedBuildInputs = with python3Packages; [
moviepy
pygobject3
pyxdg
requests
feedparser
playsound
ffmpeg
];
buildInputs = [
gdk-pixbuf
gtk3
glib
libnotify
pango
];
postPatch = ''
sed -i "/^\s*install_requires/s/, 'pgi'\|'pgi', \|'pgi'//" setup.py
'';
postInstall = ''
mkdir -p $out/share/{man/man1,applications,pixmaps}
cp pack/tartube.1 $out/share/man/man1
cp pack/tartube.desktop $out/share/applications
cp pack/tartube.{png,xpm} $out/share/pixmaps
'';
doCheck = false;
makeWrapperArgs = [
"--prefix PATH : ${stdenv.lib.makeBinPath [ youtube-dl ]}"
];
meta = with lib; {
description = "A GUI front-end for youtube-dl";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ mkg20001 luc65r ];
homepage = "https://tartube.sourceforge.io/";
};
}