shell.nix
Purpose
Provides a non-flake development shell for environments that do not use nix develop.
It mirrors the flake dev shell’s intent: expose Zig 0.15.x (when available) plus basic tooling.
Key behavior
- Chooses Zig as:
pkgs.zig_0_15if available, otherwisepkgs.zig
- Installs packages:
zigzlsripgrepgitnixfmt(prefersnixfmt-classic)
- Configures Zig caches to use repository-local paths:
ZIG_GLOBAL_CACHE_DIR = ".zig-cache"ZIG_LOCAL_CACHE_DIR = ".zig-local-cache"
- Prints the Zig version in
shellHook.