2024-01-05 12:20:44 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
toml = pkgs.formats.toml {};
|
|
|
|
in {
|
|
|
|
hm.home.file.".cargo/config.toml".source = toml.generate "config.toml" {
|
2024-05-20 23:55:56 +02:00
|
|
|
build.target-dir = "${config.hm.home.homeDirectory}/.cargo/target";
|
2024-01-05 12:20:44 +01:00
|
|
|
|
|
|
|
target.x86_64-unknown-linux-gnu = {
|
|
|
|
linker = "${lib.getExe pkgs.clang}";
|
|
|
|
rustflags = ["-C" "link-arg=-fuse-ld=${lib.getExe pkgs.mold}"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|