microfetch/nix/shell.nix
NotAShelf 3ad14a95a6
meta: build with Mold linker on x86_64 Linux
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id51e62dda1ec2ba895ffdbbd25c2f1256a6a6964
2025-11-30 17:26:49 +03:00

32 lines
443 B
Nix

{
mkShell,
cargo,
rustc,
mold,
clang,
rust-analyzer-unwrapped,
rustfmt,
clippy,
taplo,
rustPlatform,
gnuplot,
}:
mkShell {
name = "microfetch";
strictDeps = true;
nativeBuildInputs = [
cargo
rustc
mold
clang
rust-analyzer-unwrapped
(rustfmt.override {asNightly = true;})
clippy
taplo
gnuplot # for Criterion.rs plots
];
env.RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
}