aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tools/misc/direnv/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/direnv/default.nix')
-rw-r--r--pkgs/tools/misc/direnv/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/tools/misc/direnv/default.nix b/pkgs/tools/misc/direnv/default.nix
index f0c7aefc69ab..050dcf2955f3 100644
--- a/pkgs/tools/misc/direnv/default.nix
+++ b/pkgs/tools/misc/direnv/default.nix
@@ -2,7 +2,7 @@
buildGoModule rec {
pname = "direnv";
- version = "2.23.1";
+ version = "2.25.0";
vendorSha256 = null;
@@ -10,7 +10,7 @@ buildGoModule rec {
owner = "direnv";
repo = "direnv";
rev = "v${version}";
- sha256 = "02b27imda9pg65z5xw2q398p2281d5d46vgs3i9mrwcfsbpl5s6d";
+ sha256 = "00bvznswmz08s2jqpz5xxmkqggd06h6g8cwk242aaih6qajxfpsn";
};
# we have no bash at the moment for windows
@@ -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