87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
49 lines
850 B
Nix
49 lines
850 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, wrapQtAppsHook
|
|
, qtbase
|
|
, aria2
|
|
, ffmpeg
|
|
, python3
|
|
, yt-dlp
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "media-downloader";
|
|
version = "3.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mhogomchungu";
|
|
repo = pname;
|
|
rev = "${version}";
|
|
hash = "sha256-/oKvjmLFchR2B/mcLIUVIHBK78u2OQGf2aiwVR/ZoQc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
];
|
|
|
|
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;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ zendo ];
|
|
};
|
|
}
|