mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
50 lines
881 B
Nix
50 lines
881 B
Nix
{ aria2
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, ffmpeg
|
|
, lib
|
|
, python3
|
|
, qtbase
|
|
, stdenv
|
|
, wrapQtAppsHook
|
|
, yt-dlp
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "media-downloader";
|
|
version = "3.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mhogomchungu";
|
|
repo = "media-downloader";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-UmNaosunkNUTm4rsf4q29H+0cJAccUDx+ulcS2octIo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
qtbase
|
|
];
|
|
|
|
qtWrapperArgs = [
|
|
"--prefix PATH : ${lib.makeBinPath [
|
|
aria2
|
|
ffmpeg
|
|
python3
|
|
yt-dlp
|
|
]}"
|
|
];
|
|
|
|
meta = {
|
|
description = "A Qt/C++ GUI front end to youtube-dl";
|
|
homepage = "https://github.com/mhogomchungu/media-downloader";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ zendo ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|