summary refs log tree commit diff
path: root/pkgs/tools/misc/direnv
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 /pkgs/tools/misc/direnv
parentd1884cbadf4babd58c4844b8a8d9ce3ae149a2d5 (diff)
downloadnixpkgs-11c19be426d82b5fc2f9ce27210f87955abf0efd.tar
nixpkgs-11c19be426d82b5fc2f9ce27210f87955abf0efd.tar.gz
nixpkgs-11c19be426d82b5fc2f9ce27210f87955abf0efd.tar.bz2
nixpkgs-11c19be426d82b5fc2f9ce27210f87955abf0efd.tar.lz
nixpkgs-11c19be426d82b5fc2f9ce27210f87955abf0efd.tar.xz
nixpkgs-11c19be426d82b5fc2f9ce27210f87955abf0efd.tar.zst
nixpkgs-11c19be426d82b5fc2f9ce27210f87955abf0efd.zip
direnv: workaround hardcoded GOFLAGS
Diffstat (limited to 'pkgs/tools/misc/direnv')
-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 f0c7aefc69a..a659c576d8f 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