mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-29 05:31:09 +01:00
fix nix flakes reference
This commit is contained in:
parent
6c8dd7ad28
commit
44c2fa0300
1 changed files with 5 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
with pkgs;
|
||||
stdenv.mkDerivation {
|
||||
|
|
@ -7,7 +7,7 @@ stdenv.mkDerivation {
|
|||
src = ./.;
|
||||
|
||||
postPatch = ''
|
||||
sed -i "2iNIX_BIN_PREFIX=${nixFlakes}/bin/" direnvrc
|
||||
sed -i "2iNIX_BIN_PREFIX=${nixVersions.stable}/bin/" direnvrc
|
||||
substituteInPlace direnvrc \
|
||||
--replace "grep" "${gnugrep}/bin/grep"
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue