From 74d876a070a91c00a06418dbebfc1e435b676b7f Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sun, 2 Jun 2024 11:20:06 +0200 Subject: [PATCH] wrap mold --- home-manager/common.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home-manager/common.nix b/home-manager/common.nix index 6e68ca0..ed68c6b 100644 --- a/home-manager/common.nix +++ b/home-manager/common.nix @@ -8,11 +8,12 @@ in { programs.neovim.enable = true; + # mold-wrapped has the cursed nix linker shenanigans that make it produce properly rpathed binaries. home.file.".cargo/config.toml" = { text = '' [target.x86_64-unknown-linux-gnu] 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"] ''; };