Skip to content

Commit

Permalink
video-downloader: init at 0.12.20 (#264447)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Dec 16, 2024
2 parents 639295b + b42224f commit 06a16e1
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions pkgs/by-name/vi/video-downloader/package.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}

0 comments on commit 06a16e1

Please sign in to comment.