29 lines
399 B
Nix
29 lines
399 B
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
# Rust toolchain
|
|
cargo
|
|
rustc
|
|
rustfmt
|
|
clippy
|
|
rust-analyzer
|
|
|
|
# Build dependencies
|
|
pkg-config
|
|
|
|
# Additional tools
|
|
cargo-watch
|
|
cargo-edit
|
|
|
|
# Profiling tools
|
|
cargo-flamegraph
|
|
samply
|
|
linuxPackages.perf
|
|
|
|
];
|
|
|
|
# Environment variables
|
|
RUST_BACKTRACE = 1;
|
|
}
|