git.iko.soy/typeable/nixpkgs
on master help sign in
direnv: workaround hardcoded GOFLAGS
commit11c19be426d82b5fc2f9ce27210f87955abf0efd authorzowoq <59103226+zowoq@users.noreply.github.com> dateFri 30 Oct 2020, 07:42 (6 years ago) parentd1884cb
1 file changed+5
pkgs/tools/misc/direnv/default.nix+5
pkgs/tools/misc/direnv/default.nix+5
@@ -18,6 +18,11 @@ buildGoModule rec {
1818 stdenv.lib.optionalString (!stdenv.hostPlatform.isWindows)
1919 "${bash}/bin/bash";
2020
21+ # fix hardcoded GOFLAGS in makefile. remove once https://github.com/direnv/direnv/issues/718 is closed.
22+ postPatch = ''
23+ substituteInPlace GNUmakefile --replace "export GOFLAGS=-mod=vendor" ""
24+ '';
25+
2126 # replace the build phase to use the GNUMakefile instead
2227 buildPhase = ''
2328 make BASH_PATH=$BASH_PATH