2024-06-16 19:39:29 +00:00
|
|
|
{
|
|
|
|
aria2,
|
|
|
|
cmake,
|
2024-06-16 20:20:49 +00:00
|
|
|
# https://github.com/mhogomchungu/media-downloader?tab=readme-ov-file#extensions
|
|
|
|
extraPackages ? [
|
|
|
|
aria2
|
|
|
|
yt-dlp
|
|
|
|
ffmpeg
|
|
|
|
python3
|
|
|
|
],
|
2024-06-16 19:39:29 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
ffmpeg,
|
|
|
|
lib,
|
|
|
|
libsForQt5,
|
|
|
|
python3,
|
|
|
|
stdenv,
|
|
|
|
yt-dlp,
|
2022-07-02 00:44:12 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-11 20:33:51 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-07-02 00:44:12 +00:00
|
|
|
pname = "media-downloader";
|
2024-05-25 03:21:49 +00:00
|
|
|
version = "4.7.0";
|
2022-07-02 00:44:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mhogomchungu";
|
2023-08-11 20:33:51 +00:00
|
|
|
repo = "media-downloader";
|
|
|
|
rev = finalAttrs.version;
|
2024-05-25 03:21:49 +00:00
|
|
|
hash = "sha256-ykPYxRgzKZrA0KwS1FoxZOkSL+7TbLgy0yLfs7Iqpf4=";
|
2022-07-02 00:44:12 +00:00
|
|
|
};
|
|
|
|
|
2024-06-16 20:20:28 +00:00
|
|
|
# Disable automatically updating extensions when starting the program because this will
|
|
|
|
# invalidate the dependence on extensions and may cause potential security issues
|
|
|
|
# Can still be enabled in Configure > Actions At Startup
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/settings.cpp \
|
|
|
|
--replace-fail '"ShowVersionInfoAndAutoDownloadUpdates",true' '"ShowVersionInfoAndAutoDownloadUpdates",false' \
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2024-06-16 19:39:29 +00:00
|
|
|
buildInputs = [ libsForQt5.qtbase ];
|
2022-07-02 00:44:12 +00:00
|
|
|
|
2024-06-16 20:20:49 +00:00
|
|
|
qtWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath extraPackages}" ];
|
2022-07-02 00:44:12 +00:00
|
|
|
|
2023-08-11 20:33:51 +00:00
|
|
|
meta = {
|
2024-06-07 07:46:46 +00:00
|
|
|
description = "Qt/C++ GUI front end for yt-dlp and others";
|
2024-06-16 20:20:49 +00:00
|
|
|
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. We have packaged most of them, and they can
|
|
|
|
be added by overriding `extraPackages`.
|
|
|
|
'';
|
2022-07-02 00:44:12 +00:00
|
|
|
homepage = "https://github.com/mhogomchungu/media-downloader";
|
2023-08-11 20:33:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [ zendo ];
|
|
|
|
platforms = lib.platforms.linux;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "media-downloader";
|
2022-07-02 00:44:12 +00:00
|
|
|
};
|
2023-08-11 20:33:51 +00:00
|
|
|
})
|