mirror of
https://github.com/nix-community/nix-direnv.git
synced 2024-09-19 07:17:10 +03:00
23 lines
479 B
Nix
23 lines
479 B
Nix
{ stdenv, nix, gnugrep, lib }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nix-direnv";
|
|
|
|
src = ./.;
|
|
|
|
postPatch = ''
|
|
sed -i "2iNIX_BIN_PREFIX=${nix}/bin/" direnvrc
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -m400 -D direnvrc $out/share/nix-direnv/direnvrc
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A fast, persistent use_nix implementation for direnv";
|
|
homepage = "https://github.com/nix-community/nix-direnv";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|