about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authoraleksana <me@aleksana.moe>2024-06-17 04:20:49 +0800
committeraleksana <me@aleksana.moe>2024-06-17 04:27:48 +0800
commit59bc5093bf5d2d3da2e2efeca9322ce3ac3b6c03 (patch)
treef1c1a1cec8c7cd72917f830cdaf90ef2e7cc3237 /pkgs
parent8a862af4610a6c8183040002be7a0dec1aa1e0b6 (diff)
media-downloader: allow wrapping with more extensions
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/me/media-downloader/package.nix26
1 files changed, 16 insertions, 10 deletions
diff --git a/pkgs/by-name/me/media-downloader/package.nix b/pkgs/by-name/me/media-downloader/package.nix
index 6beb44fda24d3..3c75c0c3c53d6 100644
--- a/pkgs/by-name/me/media-downloader/package.nix
+++ b/pkgs/by-name/me/media-downloader/package.nix
@@ -1,6 +1,13 @@
 {
   aria2,
   cmake,
+  # https://github.com/mhogomchungu/media-downloader?tab=readme-ov-file#extensions
+  extraPackages ? [
+    aria2
+    yt-dlp
+    ffmpeg
+    python3
+  ],
   fetchFromGitHub,
   ffmpeg,
   lib,
@@ -36,19 +43,18 @@ stdenv.mkDerivation (finalAttrs: {
 
   buildInputs = [ libsForQt5.qtbase ];
 
-  qtWrapperArgs = [
-    "--prefix PATH : ${
-      lib.makeBinPath [
-        aria2
-        ffmpeg
-        python3
-        yt-dlp
-      ]
-    }"
-  ];
+  qtWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath extraPackages}" ];
 
   meta = {
     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. We have packaged most of them, and they can
+      be added by overriding `extraPackages`.
+    '';
     homepage = "https://github.com/mhogomchungu/media-downloader";
     license = lib.licenses.gpl2Plus;
     maintainers = with lib.maintainers; [ zendo ];