Files
Matthew Wilding 1b8c4df703 Add Nix flake and direnv
Dev shell for x86_64-linux, aarch64-linux and aarch64-darwin. The toolchain
comes from rust-toolchain.toml with rust-src and rust-analyzer, and .envrc
loads the make-style .env.
2026-10-08 12:33:49 +08:00

9 lines
257 B
Bash

# .env is make syntax (unquoted values with spaces), so direnv's dotenv rejects it.
if [[ -f .env ]]; then
watch_file .env
while IFS='=' read -r key value; do
[[ $key =~ ^[A-Za-z_][A-Za-z0-9_]*$ ]] && export "$key=$value"
done < .env
fi
use flake