refactor: slim flake.nix into nix/ entry files

This commit is contained in:
müde 2026-07-13 20:55:43 +02:00
commit 4f8bb6ded2
10 changed files with 470 additions and 416 deletions

18
nix/devshell.nix Normal file
View file

@ -0,0 +1,18 @@
# Dev shell: the rust toolchain plus the exact native build inputs
# the crane derivations use (git, sqlite, pkg-config, cmake — see
# ../rust.nix), so a plain `cargo build` / `cargo test` in the shell
# sees the same toolchain shape as CI.
{ pkgs, rust }:
{
default = pkgs.mkShell {
packages =
rust.nativeBuildInputs
++ (with pkgs; [
cargo
clippy
rust-analyzer
rustc
rustfmt
]);
};
}