refactor: slim flake.nix into nix/ entry files
This commit is contained in:
parent
6339a2384b
commit
4f8bb6ded2
10 changed files with 470 additions and 416 deletions
18
nix/devshell.nix
Normal file
18
nix/devshell.nix
Normal 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
|
||||
]);
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue