nix-direnv: 2.4.0 -> 2.5.1
Diff: https://github.com/nix-community/nix-direnv/compare/2.4.0...2.5.1
This commit is contained in:
parent
ad1d3762bb
commit
b586968224
1 changed files with 2 additions and 4 deletions
|
@ -1,25 +1,23 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, gnugrep
|
|
||||||
, nix
|
, nix
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation (finalAttrs:{
|
stdenv.mkDerivation (finalAttrs:{
|
||||||
pname = "nix-direnv";
|
pname = "nix-direnv";
|
||||||
version = "2.4.0";
|
version = "2.5.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nix-community";
|
owner = "nix-community";
|
||||||
repo = "nix-direnv";
|
repo = "nix-direnv";
|
||||||
rev = finalAttrs.version;
|
rev = finalAttrs.version;
|
||||||
hash = "sha256-h49uz+/YDRwbusiVx6I3HP9P3UZROIOlwjlYYqRjesE=";
|
hash = "sha256-rMQ+Nb6WqXm66g2TpF8E0Io9WBR0ve06MW8I759gl2M=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Substitute instead of wrapping because the resulting file is
|
# Substitute instead of wrapping because the resulting file is
|
||||||
# getting sourced, not executed:
|
# getting sourced, not executed:
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i "1a NIX_BIN_PREFIX=${nix}/bin/" direnvrc
|
sed -i "1a NIX_BIN_PREFIX=${nix}/bin/" direnvrc
|
||||||
substituteInPlace direnvrc --replace "grep" "${lib.getExe gnugrep}"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
Loading…
Reference in a new issue