Summary#
- Adds
nix build .#relay(andnix buildviadefault) toflake.nix - Uses crane's two-phase build (
buildDepsOnly→buildPackage) for cached dependency derivations - Passes sqlite + pkg-config so rusqlite links correctly;
LIBSQLITE3_SYS_USE_PKG_CONFIG=1mirrors the devenv setup - Pins crane via
flake.lock
Test plan#
-
nix build .#relay --accept-flake-configcompletes without error -
./result/bin/relayruns without crashing (printsrelay starting) -
nix build --accept-flake-config(default) also resolves to the relay binary - Dev shell still works:
nix develop --impure --accept-flake-config
Closes MM-65