nixpkgs/pkgs/by-name/me/media-downloader/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.5 KiB
Nix
Raw Normal View History

{
aria2,
cmake,
# https://github.com/mhogomchungu/media-downloader?tab=readme-ov-file#extensions
extraPackages ? [
aria2
ffmpeg
python3
],
fetchFromGitHub,
ffmpeg,
lib,
libsForQt5,
python3,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "media-downloader";
2024-08-24 08:43:45 +00:00
version = "5.0.1";
src = fetchFromGitHub {
owner = "mhogomchungu";
repo = "media-downloader";
rev = finalAttrs.version;
2024-08-24 08:43:45 +00:00
hash = "sha256-yAG9F9helGM8/TjJiqMDUviHK6uEUvHGny2QklwB2JY=";
};
2023-04-05 03:15:46 +00:00
nativeBuildInputs = [
cmake
2024-06-16 19:38:59 +00:00
libsForQt5.wrapQtAppsHook
2023-04-05 03:15:46 +00:00
];
buildInputs = [ libsForQt5.qtbase ];
qtWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath extraPackages}" ];
meta = {
2023-10-04 06:26:54 +00:00
description = "Qt/C++ GUI front end for yt-dlp and others";
longDescription = ''
Media Downloader is a GUI front end to yt-dlp, youtube-dl, gallery-dl,
lux, you-get, svtplay-dl, aria2c, wget and safari books.
Read https://github.com/mhogomchungu/media-downloader/wiki/Extensions
for further information. Note that adding these packages to extraPackages
doesn't work, because the author doesn't intend to support custom
installation of them. These packages will be downloaded from original
source when executing the application for the first time.
'';
homepage = "https://github.com/mhogomchungu/media-downloader";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [
zendo
aleksana
];
platforms = lib.platforms.linux;
2023-11-27 01:17:53 +00:00
mainProgram = "media-downloader";
};
})