nix: allow passing extra packages in PATH
This commit is contained in:
parent
cbdbaf1938
commit
20e1a3c93a
@ -30,6 +30,9 @@ withFTPS ? false,
|
|||||||
# samba/cifs server; dangerous and buggy, enable if you really need it
|
# samba/cifs server; dangerous and buggy, enable if you really need it
|
||||||
withSMB ? false,
|
withSMB ? false,
|
||||||
|
|
||||||
|
# extra packages to add to the PATH
|
||||||
|
extraPackages ? [ ],
|
||||||
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -61,7 +64,7 @@ in stdenv.mkDerivation {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm755 $src $out/share/copyparty-sfx.py
|
install -Dm755 $src $out/share/copyparty-sfx.py
|
||||||
makeWrapper ${pyEnv.interpreter} $out/bin/copyparty \
|
makeWrapper ${pyEnv.interpreter} $out/bin/copyparty \
|
||||||
--set PATH '${lib.makeBinPath ([ util-linux ] ++ lib.optional withMediaProcessing ffmpeg)}:$PATH' \
|
--set PATH '${lib.makeBinPath ([ util-linux ] ++ extraPackages ++ lib.optional withMediaProcessing ffmpeg)}:$PATH' \
|
||||||
--add-flags "$out/share/copyparty-sfx.py"
|
--add-flags "$out/share/copyparty-sfx.py"
|
||||||
'';
|
'';
|
||||||
meta.mainProgram = "copyparty";
|
meta.mainProgram = "copyparty";
|
||||||
|
Loading…
Reference in New Issue
Block a user