nix-direnv: Fix nix executable paths

Match the upstream change in:
https://github.com/nix-community/nix-direnv/commit/991ea66bb86f5f188f4d5292aa2283458436b5b1
This commit is contained in:
adisbladis
2021-02-19 11:56:59 +01:00
parent ad4db3f4d8
commit 349b8cfd36
+2 -3
View File
@@ -15,9 +15,8 @@ stdenv.mkDerivation rec {
# getting sourced, not executed:
postPatch = ''
substituteInPlace direnvrc \
--replace "grep" "${gnugrep}/bin/grep" \
--replace "nix-shell" "${nix}/bin/nix-shell" \
--replace "nix-instantiate" "${nix}/bin/nix-instantiate"
--replace "\''${NIX_BIN_PREFIX:-}" "\''${NIX_BIN_PREFIX:-${nix}/bin/}" \
--replace "grep" "${gnugrep}/bin/grep"
'';
installPhase = ''