wrap mold

This commit is contained in:
nora 2024-06-02 11:20:06 +02:00
parent 6238aa9a57
commit 74d876a070

View file

@ -8,11 +8,12 @@ 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_16.clang}" linker = "${lib.getExe pkgs.llvmPackages_16.clang}"
rustflags = ["-Clink-arg=-fuse-ld=${lib.getExe' pkgs.mold "mold"}", "-Ctarget-cpu=native"] rustflags = ["-Clink-arg=-fuse-ld=${lib.getExe' pkgs.mold-wrapped "mold"}", "-Ctarget-cpu=native"]
''; '';
}; };