mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-25 03:39:45 +01:00
fix nix flakes reference
This commit is contained in:
parent
6c8dd7ad28
commit
44c2fa0300
1 changed files with 5 additions and 5 deletions
10
default.nix
10
default.nix
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs ? import <nixpkgs> {} }:
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
|
@ -7,7 +7,7 @@ stdenv.mkDerivation {
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i "2iNIX_BIN_PREFIX=${nixFlakes}/bin/" direnvrc
|
sed -i "2iNIX_BIN_PREFIX=${nixVersions.stable}/bin/" direnvrc
|
||||||
substituteInPlace direnvrc \
|
substituteInPlace direnvrc \
|
||||||
--replace "grep" "${gnugrep}/bin/grep"
|
--replace "grep" "${gnugrep}/bin/grep"
|
||||||
'';
|
'';
|
||||||
|
|
@ -18,8 +18,8 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A fast, persistent use_nix implementation for direnv";
|
description = "A fast, persistent use_nix implementation for direnv";
|
||||||
homepage = "https://github.com/nix-community/nix-direnv";
|
homepage = "https://github.com/nix-community/nix-direnv";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue