arcanist: add missing dependency 'which'

'arc' uses 'which' to find external programs at runtime.
This commit is contained in:
Bjørn Forsman 2022-03-31 13:15:22 +02:00
parent fe9906cb48
commit 7c10b247df

View file

@ -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}