A fast, persistent use_nix/use_flake implementation for direnv [maintainer=@Mic92 / @bbenne10]
Find a file
Jörg Thalheim 5a91446000
Fix TMPDIR backup (#1)
This was clearing TMPDIR since it was first not setting the
`tmp_backup` local variable, and then, since `tmp_backup` was null, it
was unsetting TMPDIR.

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2020-03-05 07:33:06 +00:00
direnvrc Fix TMPDIR backup (#1) 2020-03-05 07:33:06 +00:00
LICENSE Initial commit 2019-09-27 08:43:48 +01:00
README.md README.md: improve language 2019-09-27 09:06:43 +01:00

nix-direnv

A fast, persistent use_nix implementation for direnv. Prominent features:

  • significantly faster after the first run by caching the nix-shell environment
  • prevents garbage collection of build dependencies by symlinking the resulting shell derivation in the user's gcroots (Life is too short to loose your build cache of your project if you are in a plane without internet connection)

USAGE

$ git clone https://github.com/nix-community/nix-direnv $HOME/.nix-direnv

Then source the direnvrc from this repository in your own .direnvrc

# put this in ~/.direnvrc
source $HOME/.nix-direnv/direnvrc