pakker/nix/shell.nix
NotAShelf 563ff2b187
nix: initial tooling setup
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ia510d6575a3796118a14dbc834af1ba16a6a6964
2026-02-13 00:15:03 +03:00

45 lines
569 B
Nix

{
mkShell,
rustc,
cargo,
lld,
rust-analyzer-unwrapped,
rustfmt,
clippy,
taplo,
cargo-nextest,
rustPlatform,
# Build deps
openssl,
pkg-config,
}:
mkShell {
name = "rust";
strictDeps = true;
packages = [
rustc
cargo
lld
# Tools
(rustfmt.override {asNightly = true;})
clippy
cargo
taplo
rust-analyzer-unwrapped
# Additional Cargo tooling
cargo-nextest
];
buildInputs = [
openssl
];
nativeBuildInputs = [
pkg-config
];
env.RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
}