diff options
Diffstat (limited to 'home/ebisu/kansai/development/languages/rust.nix')
| -rw-r--r-- | home/ebisu/kansai/development/languages/rust.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/home/ebisu/kansai/development/languages/rust.nix b/home/ebisu/kansai/development/languages/rust.nix new file mode 100644 index 0000000..516c61e --- /dev/null +++ b/home/ebisu/kansai/development/languages/rust.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: +{ + home.packages = with pkgs; [ + cargo-outdated + cargo-watch + cargo-make + cargo-cache + rustup + cargo-udeps + tsutsumi.cargo-clean-all + ]; + + home.file.".local/share/cargo/config.toml".text = with pkgs; '' + [build] + rustc-wrapper = "${sccache}/bin/sccache" + + [target.x86_64-unknown-linux-gnu] + linker = "${clang}/bin/clang" + rustflags = ["-Clink-args=-fuse-ld=${mold}/bin/mold"] + ''; +} |