From 20e1a3c93a582f840c55611d8e98a4e27624a9fc Mon Sep 17 00:00:00 2001 From: Tom van Dijk <18gatenmaker6@gmail.com> Date: Mon, 28 Jul 2025 12:41:25 +0200 Subject: [PATCH] nix: allow passing extra packages in PATH --- contrib/package/nix/copyparty/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/package/nix/copyparty/default.nix b/contrib/package/nix/copyparty/default.nix index d34f9ae7..b2db7c56 100644 --- a/contrib/package/nix/copyparty/default.nix +++ b/contrib/package/nix/copyparty/default.nix @@ -30,6 +30,9 @@ withFTPS ? false, # samba/cifs server; dangerous and buggy, enable if you really need it withSMB ? false, +# extra packages to add to the PATH +extraPackages ? [ ], + }: let @@ -61,7 +64,7 @@ in stdenv.mkDerivation { installPhase = '' install -Dm755 $src $out/share/copyparty-sfx.py 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" ''; meta.mainProgram = "copyparty";