about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/arcanist
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2022-03-31 13:15:22 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2022-03-31 13:15:22 +0200
commit7c10b247dfcdfa7c83f2d8ef6c296deb062feb5c (patch)
treea6136e6db320593d7dafad31e94405fe1c332149 /pkgs/development/tools/misc/arcanist
parentfe9906cb4896d70d86452d76d11838025ffd6532 (diff)
arcanist: add missing dependency 'which'
'arc' uses 'which' to find external programs at runtime.
Diffstat (limited to 'pkgs/development/tools/misc/arcanist')
-rw-r--r--pkgs/development/tools/misc/arcanist/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/tools/misc/arcanist/default.nix b/pkgs/development/tools/misc/arcanist/default.nix
index a2af61fb6a164..9540f1e0a6c81 100644
--- a/pkgs/development/tools/misc/arcanist/default.nix
+++ b/pkgs/development/tools/misc/arcanist/default.nix
@@ -5,6 +5,7 @@
 , php
 , lib, stdenv
 , installShellFiles
+, which
 }:
 
 # Make a custom wrapper. If `wrapProgram` is used, arcanist thinks .arc-wrapped is being
@@ -14,7 +15,7 @@
 let makeArcWrapper = toolset: ''
   cat << WRAPPER > $out/bin/${toolset}
   #!$shell -e
-  export PATH='${php}/bin/'\''${PATH:+':'}\$PATH
+  export PATH='${php}/bin:${which}/bin'\''${PATH:+':'}\$PATH
   exec ${php}/bin/php $out/libexec/arcanist/bin/${toolset} "\$@"
   WRAPPER
   chmod +x $out/bin/${toolset}