summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-09 04:51:43 -0700
committerFuwn <[email protected]>2024-09-09 04:51:43 -0700
commite229bd5c23c173161963fa836f3387b61cabb4a4 (patch)
tree1aee8f88828a1eda8ab3f8463dd27a1f8607637f
parentBump: organise (diff)
downloadnixos-config-e229bd5c23c173161963fa836f3387b61cabb4a4.tar.xz
nixos-config-e229bd5c23c173161963fa836f3387b61cabb4a4.zip
Bump: rust config.toml
-rw-r--r--home/ebisu/fortune/development/languages/rust.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/home/ebisu/fortune/development/languages/rust.nix b/home/ebisu/fortune/development/languages/rust.nix
index b2376f0..9664669 100644
--- a/home/ebisu/fortune/development/languages/rust.nix
+++ b/home/ebisu/fortune/development/languages/rust.nix
@@ -9,4 +9,13 @@
cargo-udeps
(callPackage ../../../../../pkgs/cargo-clean-all.nix { })
];
+
+ 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"]
+ '';
}