From b42224fbbf424b50b61fbf09e7c0e3e5221852ce Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Mon, 30 Oct 2023 21:50:42 +0100 Subject: [PATCH] video-downloader: init at 0.12.20 Co-authored-by: Aleksana --- pkgs/by-name/vi/video-downloader/package.nix | 72 ++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 pkgs/by-name/vi/video-downloader/package.nix diff --git a/pkgs/by-name/vi/video-downloader/package.nix b/pkgs/by-name/vi/video-downloader/package.nix new file mode 100644 index 0000000000000..57548ff3433d9 --- /dev/null +++ b/pkgs/by-name/vi/video-downloader/package.nix @@ -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"; + }; +}