2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, qt5
|
|
|
|
, ffmpeg-full
|
|
|
|
, aria2
|
|
|
|
, yt-dlp
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "media-downloader";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "2.7.0";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mhogomchungu";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
sha256 = "sha256-uu/4S7cVWHOhBq52NF0AargE0nbPwjF0txSWL0DquQo=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|