packages/activate-shell: download nix-direnv if not available
This commit is contained in:
parent
66de9b0d23
commit
a0ac3348e6
1 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
|||
TOP="$(git rev-parse --show-toplevel)"
|
||||
use flake "${TOP}#$(basename $PWD)"
|
||||
eval "$shellHook"
|
||||
export REPO_ROOT="$(git rev-parse --show-toplevel)"
|
||||
if ! has nix_direnv_version || ! nix_direnv_version 2.1.0; then
|
||||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.1.0/direnvrc" "sha256-FAT2R9yYvVg516v3LiogjIc8YfsbWbMM/itqWsm5xTA="
|
||||
fi
|
||||
use flake "${REPO_ROOT}#$(basename $PWD)"
|
||||
|
|
Loading…
Reference in a new issue