nixpkgs/pkgs/applications/video/media-downloader/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
850 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, cmake
2023-04-05 03:15:46 +00:00
, wrapQtAppsHook
, qtbase
, aria2
2023-04-05 03:15:46 +00:00
, ffmpeg
, python3
2023-04-05 03:15:46 +00:00
, yt-dlp
}:
stdenv.mkDerivation rec {
pname = "media-downloader";
2023-04-05 03:15:46 +00:00
version = "3.1.0";
src = fetchFromGitHub {
owner = "mhogomchungu";
repo = pname;
rev = "${version}";
2023-04-05 03:15:46 +00:00
hash = "sha256-/oKvjmLFchR2B/mcLIUVIHBK78u2OQGf2aiwVR/ZoQc=";
};
2023-04-05 03:15:46 +00:00
nativeBuildInputs = [
cmake
wrapQtAppsHook
];
buildInputs = [
qtbase
];
2023-04-05 03:15:46 +00:00
qtWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [
aria2
ffmpeg
python3
yt-dlp
]}"
];
meta = with lib; {
description = "A Qt/C++ GUI front end to youtube-dl";
homepage = "https://github.com/mhogomchungu/media-downloader";
license = licenses.gpl2Plus;
2023-04-05 03:15:46 +00:00
platforms = platforms.linux;
maintainers = with maintainers; [ zendo ];
};
}