use new mold name

finally, it was so dumb before
This commit is contained in:
nora 2025-12-22 13:14:26 +01:00
parent f44c9dfe72
commit 908bedf0db

View file

@ -7,13 +7,11 @@ let
in in
{ {
programs.neovim.enable = true; programs.neovim.enable = true;
# mold-wrapped has the cursed nix linker shenanigans that make it produce properly rpathed binaries.
home.file.".cargo/config.toml" = { home.file.".cargo/config.toml" = {
text = '' text = ''
[target.x86_64-unknown-linux-gnu] [target.x86_64-unknown-linux-gnu]
linker = "${lib.getExe pkgs.llvmPackages_21.clang}" linker = "${lib.getExe pkgs.llvmPackages_21.clang}"
rustflags = ["-Clink-arg=-fuse-ld=${lib.getExe' pkgs.mold-wrapped "mold"}", "-Ctarget-cpu=native"] rustflags = ["-Clink-arg=-fuse-ld=${lib.getExe' pkgs.mold "mold"}", "-Ctarget-cpu=native"]
''; '';
}; };