nix-direnv: Fix nix executable paths

Match the upstream change in:
991ea66bb8
This commit is contained in:
adisbladis 2021-02-19 11:52:28 +01:00
parent ad4db3f4d8
commit 349b8cfd36
No known key found for this signature in database
GPG Key ID: 110BFAD44C6249B7

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 = ''