nix: initial tooling setup

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ia510d6575a3796118a14dbc834af1ba16a6a6964
This commit is contained in:
raf 2026-01-29 21:12:51 +03:00
commit 563ff2b187
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 125 additions and 0 deletions

45
nix/shell.nix Normal file
View file

@ -0,0 +1,45 @@
{
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}";
}