Add rust devshell
Add sccache Add clang so rust can actually build
This commit is contained in:
parent
16db8372c8
commit
b136c7988e
3 changed files with 80 additions and 17 deletions
29
devshells/rust.nix
Normal file
29
devshells/rust.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue