git.iko.soy/typeable/nixpkgs
on master help sign in
direnv: workaround hardcoded GOFLAGS
11c19bezowoq
pkgs/tools/misc/direnv/default.nix+5
@@ -18,6 +18,11 @@ buildGoModule rec {
18 stdenv.lib.optionalString (!stdenv.hostPlatform.isWindows)
18 stdenv.lib.optionalString (!stdenv.hostPlatform.isWindows)
19 "${bash}/bin/bash";
19 "${bash}/bin/bash";
20
20
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+
21 # replace the build phase to use the GNUMakefile instead
26 # replace the build phase to use the GNUMakefile instead
22 buildPhase = ''
27 buildPhase = ''
23 make BASH_PATH=$BASH_PATH
28 make BASH_PATH=$BASH_PATH