video-downloader: init at 0.12.20

Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
This commit is contained in:
FliegendeWurst
2024-12-15 15:41:07 +01:00
co-authored by Aleksana
parent f03cbc4e78
commit b42224fbbf
@@ -0,0 +1,72 @@
{
lib,
fetchFromGitHub,
ffmpeg,
python3Packages,
meson,
yt-dlp,
wrapGAppsHook4,
desktop-file-utils,
ninja,
gobject-introspection,
glib,
pkg-config,
gtk4,
librsvg,
libadwaita,
}:
python3Packages.buildPythonApplication rec {
pname = "video-downloader";
version = "0.12.20";
pyproject = false; # Built with meson
src = fetchFromGitHub {
owner = "Unrud";
repo = "video-downloader";
tag = "v${version}";
hash = "sha256-UaSEcqD4hYRacQfLHgkXgO+/lIV5GxMX9NDOTLhTw+o=";
};
propagatedBuildInputs = with python3Packages; [
pygobject3
yt-dlp
];
nativeBuildInputs = [
pkg-config
meson
ninja
wrapGAppsHook4
desktop-file-utils
gobject-introspection
];
buildInputs = [
glib
gtk4
librsvg
libadwaita
];
# would require network connectivity
doCheck = false;
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
)
'';
meta = {
homepage = "https://github.com/Unrud/video-downloader";
changelog = "https://github.com/Unrud/video-downloader/releases";
description = "GUI application based on yt-dlp";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fliegendewurst ];
mainProgram = "video-downloader";
};
}