mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
direnv: workaround hardcoded GOFLAGS
This commit is contained in:
parent
d1884cbadf
commit
11c19be426
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user