waf: move binary to $out/bin/

Originally this was just the executable, but this breaks nix-shell
usage. Instead, just do a normal directory.

Fixes #79909
This commit is contained in:
Matthew Bauer 2020-03-06 00:08:06 -05:00 committed by Frederik Rietdijk
parent 93ba4ecd58
commit dfbe76a681
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
python waf-light build${wafToolsArg}
'';
installPhase = ''
install waf $out
install -D waf $out/bin/waf
'';
meta = with stdenv.lib; {

View file

@ -3,7 +3,7 @@ wafConfigurePhase() {
if ! [ -f "${wafPath:=./waf}" ]; then
echo "copying waf to $wafPath..."
cp @waf@ "$wafPath"
cp @waf@/bin/waf "$wafPath"
fi
if [ -z "${dontAddPrefix:-}" ] && [ -n "$prefix" ]; then