9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
49 lines
845 B
Nix
49 lines
845 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, wrapQtAppsHook
|
|
, qtbase
|
|
, aria2
|
|
, ffmpeg
|
|
, python3
|
|
, yt-dlp
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "media-downloader";
|
|
version = "3.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mhogomchungu";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-+wLVF0UKspVll+dYZGSk5dUbPBc/2Y0cqTuaeepxw+k=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|