direnv: 2.25.1 -> 2.27.0 (#108125)
This commit is contained in:
parent
0587d518db
commit
1996ff7d42
@ -2,36 +2,29 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "direnv";
|
pname = "direnv";
|
||||||
version = "2.25.1";
|
version = "2.27.0";
|
||||||
|
|
||||||
vendorSha256 = null;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "direnv";
|
owner = "direnv";
|
||||||
repo = "direnv";
|
repo = "direnv";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0bwr7zdzjm5p6bjyzafc2n57y83f0pv2bmj99rhi8f94hhfydlsf";
|
sha256 = "05vvn59xd2q4yjizh5fprjib5xqq58by80d5avsm8nb1qxf383b1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "084x7d7sshcsyim76d6pl6127nlqacgwwnm965srl9y5w5nqzba6";
|
||||||
|
|
||||||
# we have no bash at the moment for windows
|
# we have no bash at the moment for windows
|
||||||
BASH_PATH =
|
BASH_PATH =
|
||||||
stdenv.lib.optionalString (!stdenv.hostPlatform.isWindows)
|
stdenv.lib.optionalString (!stdenv.hostPlatform.isWindows)
|
||||||
"${bash}/bin/bash";
|
"${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
|
# replace the build phase to use the GNUMakefile instead
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make BASH_PATH=$BASH_PATH
|
make BASH_PATH=$BASH_PATH
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
make install DESTDIR=$out
|
make install PREFIX=$out
|
||||||
mkdir -p $out/share/fish/vendor_conf.d
|
|
||||||
echo "eval ($out/bin/direnv hook fish)" > $out/share/fish/vendor_conf.d/direnv.fish
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ fish zsh ];
|
checkInputs = [ fish zsh ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user