3
0
Fork 0
forked from mirrors/nixpkgs

media-downloader: 2.9.0 -> 3.1.0

This commit is contained in:
zendo 2023-04-05 11:15:46 +08:00
parent cc5bde4085
commit 17af0c2ea3
2 changed files with 24 additions and 14 deletions

View file

@ -2,38 +2,48 @@
, stdenv
, fetchFromGitHub
, cmake
, qt5
, ffmpeg-full
, wrapQtAppsHook
, qtbase
, aria2
, yt-dlp
, ffmpeg
, python3
, yt-dlp
}:
stdenv.mkDerivation rec {
pname = "media-downloader";
version = "2.9.0";
version = "3.1.0";
src = fetchFromGitHub {
owner = "mhogomchungu";
repo = pname;
rev = "${version}";
sha256 = "sha256-3tVOyIwdGcSVnEJWQWh6HIsjY6uEzWkTs45qf81r/+0=";
hash = "sha256-/oKvjmLFchR2B/mcLIUVIHBK78u2OQGf2aiwVR/ZoQc=";
};
nativeBuildInputs = [ cmake qt5.wrapQtAppsHook ];
nativeBuildInputs = [
cmake
wrapQtAppsHook
];
preFixup = ''
qtWrapperArgs+=(
--prefix PATH : "${lib.makeBinPath [ ffmpeg-full aria2 yt-dlp python3 ]}"
)
'';
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;
broken = stdenv.isDarwin;
platforms = platforms.unix;
platforms = platforms.linux;
maintainers = with maintainers; [ zendo ];
};
}

View file

@ -31820,7 +31820,7 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
media-downloader = callPackage ../applications/video/media-downloader { };
media-downloader = libsForQt5.callPackage ../applications/video/media-downloader { };
mediaelch = mediaelch-qt5;
mediaelch-qt5 = libsForQt5.callPackage ../applications/misc/mediaelch { };