summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-10-30 07:42:14 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-11-18 08:13:34 +1000
commit11c19be426d82b5fc2f9ce27210f87955abf0efd (patch)
treefc27d5d7c0ff848a76830ec741f7f65904e06cbd
parentd1884cbadf4babd58c4844b8a8d9ce3ae149a2d5 (diff)
direnv: workaround hardcoded GOFLAGS
-rw-r--r--pkgs/tools/misc/direnv/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/misc/direnv/default.nix b/pkgs/tools/misc/direnv/default.nix
index f0c7aefc69ab..a659c576d8fb 100644
--- a/pkgs/tools/misc/direnv/default.nix
+++ b/pkgs/tools/misc/direnv/default.nix
@@ -18,6 +18,11 @@ buildGoModule rec {
stdenv.lib.optionalString (!stdenv.hostPlatform.isWindows)
"${bash}/bin/bash";
+ # fix hardcoded GOFLAGS in makefile. remove once https://github.com/direnv/direnv/issues/718 is closed.
+ postPatch = ''
+ substituteInPlace GNUmakefile --replace "export GOFLAGS=-mod=vendor" ""
+ '';
+
# replace the build phase to use the GNUMakefile instead
buildPhase = ''
make BASH_PATH=$BASH_PATH