diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2020-10-13 14:09:43 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2020-10-19 14:43:00 -0400 |
commit | 2d9778dc01c8ca6c5a915e1ee638251878990d10 (patch) | |
tree | 27a850e0eaf74937f78e7486552510cf954bc620 /.envrc | |
parent | nixify step (diff) |
build nix derivation (using dub2nix helper tool)
- nix-shell
- nix-build
- dub2nix (dub to nix helper tool)
- Lionello Lunesu
- MIT License
- https://github.com/lionello/dub2nix
Diffstat (limited to '.envrc')
-rw-r--r-- | .envrc | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -1,2 +1,13 @@ -use nix -NIX_ENFORCE_PURITY=0 +if type lorri &>/dev/null; then + echo "direnv: using lorri from PATH ($(type -p lorri))" + eval "$(lorri direnv)" +else + # fall back to using direnv's builtin nix support + # to prevent bootstrapping problems. + use nix + NIX_ENFORCE_PURITY=0 +fi +# source an additional user-specific .envrc in ./.envrc-local +if [ -e .envrc-local ]; then + source .envrc-local +fi |