depot/third_party/nixpkgs/pkgs/applications/video/media-downloader/default.nix
Default email d2947cfef0 Project import generated by Copybara.
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
2022-10-06 20:32:54 +02:00

39 lines
818 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, qt5
, ffmpeg-full
, aria2
, yt-dlp
, python3
}:
stdenv.mkDerivation rec {
pname = "media-downloader";
version = "2.6.0";
src = fetchFromGitHub {
owner = "mhogomchungu";
repo = pname;
rev = "${version}";
sha256 = "sha256-pDldAg4q6qGvRHuffKU49akDwwSTNCZPJ6AgauxgotI=";
};
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 ];
};
}