From f2db11e1cd20cc9d682addee201db3e1ad0c45cd 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 --- pkgs/by-name/vi/video-downloader/package.nix | 70 ++++++++++++++++++++ 1 file changed, 70 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 00000000000000..3691637d28f73d --- /dev/null +++ b/pkgs/by-name/vi/video-downloader/package.nix @@ -0,0 +1,70 @@ +{ + lib, + fetchFromGitHub, + 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[@]}" + ) + ''; + + 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"; + }; +}