celluloid: add youtubeSupport
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user