about summary refs log tree commit diff
path: root/pkgs/by-name/ce
diff options
context:
space:
mode:
authorseth <getchoo@tuta.io>2024-03-14 04:36:23 -0400
committerseth <getchoo@tuta.io>2024-03-14 20:05:29 -0400
commitf181a5dec76cbfda21600c11c05810c691423ab0 (patch)
treeb5a111b1579f43994b000648fb6be5bcc69ad966 /pkgs/by-name/ce
parent02b8c7ddb7fe956871fa65466bf8a30fa69ec078 (diff)
celluloid: add youtubeSupport
Diffstat (limited to 'pkgs/by-name/ce')
-rw-r--r--pkgs/by-name/ce/celluloid/package.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/by-name/ce/celluloid/package.nix b/pkgs/by-name/ce/celluloid/package.nix
index 64ee44b1ad166..a3491af59fbd3 100644
--- a/pkgs/by-name/ce/celluloid/package.nix
+++ b/pkgs/by-name/ce/celluloid/package.nix
@@ -15,6 +15,8 @@
 , pkg-config
 , python3
 , wrapGAppsHook4
+, yt-dlp
+, youtubeSupport ? true
 }:
 
 stdenv.mkDerivation (finalAttrs: {
@@ -51,6 +53,12 @@ stdenv.mkDerivation (finalAttrs: {
     patchShebangs meson-post-install.py src/generate-authors.py
   '';
 
+  preFixup = lib.optionalString youtubeSupport ''
+    gappsWrapperArgs+=(
+      --prefix PATH : "${lib.makeBinPath [ yt-dlp ]}"
+    )
+  '';
+
   strictDeps = true;
 
   doCheck = true;