celluloid: add youtubeSupport

This commit is contained in:
seth
2024-03-14 20:05:29 -04:00
parent 02b8c7ddb7
commit f181a5dec7
+8
View File
@@ -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;