direnv: fix missing BASH_PATH (#89165)
This was broken by the switch to go modules (#87932) which doesn't
respect makeFlags.
Fixes #89129
commitbc3b694a39174ceed2fd711f404ff53e0f12f56a
authorzimbatm <zimbatm@zimbatm.com>
dateFri 29 May 2020, 16:02 (6 years ago)
parent7172514
pkgs/tools/misc/direnv/default.nix+8−3
@@ -14,9 +14,14 @@ buildGoModule rec {
1414 };
1515
1616 # we have no bash at the moment for windows
17− makeFlags = stdenv.lib.optional (!stdenv.hostPlatform.isWindows) [
18− "BASH_PATH=${bash}/bin/bash"
19− ];
17+ BASH_PATH =
18+ stdenv.lib.optionalString (!stdenv.hostPlatform.isWindows)
19+ "${bash}/bin/bash";
20+
21+ # replace the build phase to use the GNUMakefile instead
22+ buildPhase = ''
23+ make BASH_PATH=$BASH_PATH
24+ '';
2025
2126 installPhase = ''
2227 make install DESTDIR=$out