0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
39 lines
818 B
Nix
39 lines
818 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, qt5
|
|
, ffmpeg-full
|
|
, aria2
|
|
, yt-dlp
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "media-downloader";
|
|
version = "2.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mhogomchungu";
|
|
repo = pname;
|
|
rev = "${version}";
|
|
sha256 = "sha256-RMZG+rPbwJFL2AzEZlTrc8/bQCx8CWCWppEBjCj5hnU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake qt5.wrapQtAppsHook ];
|
|
|
|
preFixup = ''
|
|
qtWrapperArgs+=(
|
|
--prefix PATH : "${lib.makeBinPath [ ffmpeg-full aria2 yt-dlp python3 ]}"
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A Qt/C++ GUI front end to youtube-dl";
|
|
homepage = "https://github.com/mhogomchungu/media-downloader";
|
|
license = licenses.gpl2Plus;
|
|
broken = stdenv.isDarwin;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ zendo ];
|
|
};
|
|
}
|