From 7c10b247dfcdfa7c83f2d8ef6c296deb062feb5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Thu, 31 Mar 2022 13:15:22 +0200 Subject: [PATCH] arcanist: add missing dependency 'which' 'arc' uses 'which' to find external programs at runtime. --- pkgs/development/tools/misc/arcanist/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/arcanist/default.nix b/pkgs/development/tools/misc/arcanist/default.nix index a2af61fb6a16..9540f1e0a6c8 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}