Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

82 lines
1.4 KiB
Nix

{
lib,
fetchFromGitHub,
gdk-pixbuf,
gobject-introspection,
gtk3,
libnotify,
pango,
python3Packages,
wrapGAppsHook3,
youtube-dl,
glib,
ffmpeg,
aria2,
}:
python3Packages.buildPythonApplication rec {
pname = "tartube";
version = "2.5.164";
format = "setuptools";
src = fetchFromGitHub {
owner = "axcore";
repo = "tartube";
tag = "v${version}";
sha256 = "sha256-PPvbdxxGUYUKL+5exO5+iO5ObJgjzFejZIIDA17hvYo=";
};
nativeBuildInputs = [
gobject-introspection
wrapGAppsHook3
];
strictDeps = false;
propagatedBuildInputs = with python3Packages; [
moviepy
pygobject3
pyxdg
requests
feedparser
playsound
ffmpeg
matplotlib
aria2
];
buildInputs = [
gdk-pixbuf
gtk3
glib
libnotify
pango
];
postPatch = ''
sed -i "/^\s*'pgi',$/d" 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 : ${lib.makeBinPath [ youtube-dl ]}"
];
meta = with lib; {
description = "GUI front-end for youtube-dl";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ mkg20001 ];
homepage = "https://tartube.sourceforge.io/";
mainProgram = "tartube";
};
}