jeol-t330a/beamer/libs/semserialize/shell.nix

18 lines
381 B
Nix
Raw Normal View History

2025-01-11 15:14:30 +00:00
{ pkgs ? import <nixpkgs> {}}:
let rust-toolchain = with pkgs; symlinkJoin {
name = "rust-toolchain";
paths = [
rustc
cargo
rustfmt
rust-analyzer
clippy
rustPlatform.rustcSrc
];
};
in pkgs.mkShell {
2025-01-11 15:45:07 +00:00
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
2025-01-11 15:14:30 +00:00
buildInputs = [rust-toolchain];
RUST_BACKTRACE = 1;
}