System/devshells/rust.nix
Nathan McCarty b136c7988e Add rust devshell
Add sccache

Add clang so rust can actually build
2024-11-30 09:26:17 +00:00

30 lines
570 B
Nix

{ withSystem, inputs, ... }:
{
perSystem =
{ config, pkgs, ... }:
{
devshells.rust = {
env = [
{
name = "RUSTC_WRAPPER";
value = "${pkgs.sccache}/bin/sccache";
}
];
commands = [
# {
# help = "print hello";
# name = "hello";
# command = "echo hello";
# }
];
packages = with pkgs; [
# Rust toolchain
clang
rustup
# Faster builds
sccache
];
};
};
}