File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1+ # shellcheck disable=SC2148
12if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then
23 source_url " https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" " sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM="
34fi
45
56IGREEN=' \033[0;92m'
67IRED=' \033[0;91m'
78NC=' \033[0m'
8- if [ $( nix eval --impure --expr ' let f = builtins.getFlake "git+file://${toString ./.}"; in f.lib.versionAtLeast builtins.nixVersion "2.17.0" ' ) != " true" ]; then
9+ if [ " $( nix eval --impure --expr " let f = builtins.getFlake \ " git+file://\ $ {toString ./.}\ " ; in f.lib.versionAtLeast builtins.nixVersion \ " 2.17.0\" " ) " != " true" ]; then
910 echo -e " The nix version must be at least ${IGREEN} 2.17.0${NC} for fetchClosure of pure packages."
1011 echo -e " Your version is ${IRED} $( nix --version) ${NC} "
1112 exit
1213fi
1314
14- if [ $( nix eval --expr ' builtins ? fetchClosure' ) != " true" ]; then
15+ if [ " $( nix eval --expr ' builtins ? fetchClosure' ) " != " true" ]; then
1516 echo -e " Experimental nix feature \" ${IGREEN} fetch-closure${NC} \" ${IRED} must be enabled${NC} for fetchClosure of pure packages."
1617 echo " You may need to add the following to your nix config:"
1718 echo
1819 echo " nix.settings.extraOptions = \" experimental-features = fetch-closure\" ;"
1920 exit
2021fi
2122
23+ # shellcheck disable=SC1091
2224[ -f .envrc.local ] && source .envrc.local
2325
2426if [ -z " ${SOPS_AGE_KEY_FILE:- } " ] && [ -f ~ /.age/credentials ]; then
2527 export SOPS_AGE_KEY_FILE=~ /.age/credentials
2628fi
2729
2830if [ -n " ${DEVSHELL_TARGET:- } " ]; then
29- use flake .# ${ DEVSHELL_TARGET}
31+ use flake " .#$DEVSHELL_TARGET "
3032else
3133 use flake
3234fi
You can’t perform that action at this time.
0 commit comments