14 lines
494 B
Bash
14 lines
494 B
Bash
#!/bin/sh
|
|
|
|
# first time
|
|
if [[ ! -d $(nix store add-path --name source --dry-run .) ]]; then
|
|
nix store add-path --name source .
|
|
(cd ./src/local && nix flake lock --update-input std)
|
|
(cd ./src/tests && nix flake lock --update-input std)
|
|
fi
|
|
|
|
# shellcheck disable=SC1090
|
|
. "$(fetchurl "https://raw.githubusercontent.com/paisano-nix/direnv/main/lib" "sha256-R3K8Flvbovj4IOvdlWNtQKLMMSQV464WjG9eU29ixHk=")"
|
|
|
|
use envreload "//repo/userShells/${USER}" //repo/userShells/default //repo/userShells
|