depot/third_party/nixpkgs/pkgs/applications/video/media-downloader/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +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.7.0";
src = fetchFromGitHub {
owner = "mhogomchungu";
repo = pname;
rev = "${version}";
sha256 = "sha256-uu/4S7cVWHOhBq52NF0AargE0nbPwjF0txSWL0DquQo=";
};
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 ];
};
}