sfos/.envrc

15 lines
436 B
Bash

if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi
watch_file flake.nix
watch_file flake.lock
watch_file go.lock
source .env
watch_file .env
watch_file go.mod
if ! use flake . --impure
then
echo "devenv could not be built. The devenv environment was not loaded." >&2
fi