direnv: fix missing BASH_PATH (#89165)

This was broken by the switch to go modules (#87932) which doesn't
respect makeFlags.

Fixes #89129
This commit is contained in:
zimbatm 2020-05-29 16:02:49 +02:00 committed by GitHub
parent 7172514b72
commit bc3b694a39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,9 +14,14 @@ buildGoModule rec {
};
# we have no bash at the moment for windows
makeFlags = stdenv.lib.optional (!stdenv.hostPlatform.isWindows) [
"BASH_PATH=${bash}/bin/bash"
];
BASH_PATH =
stdenv.lib.optionalString (!stdenv.hostPlatform.isWindows)
"${bash}/bin/bash";
# replace the build phase to use the GNUMakefile instead
buildPhase = ''
make BASH_PATH=$BASH_PATH
'';
installPhase = ''
make install DESTDIR=$out