From 71c96469496ad65d19a6b09d16682aa1b66511b4 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Wed, 8 Oct 2025 15:24:52 +0900 Subject: [PATCH] msedit: fix build on x86_64-darwin --- pkgs/by-name/ms/msedit/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/ms/msedit/package.nix b/pkgs/by-name/ms/msedit/package.nix index fc5bbd7db4a3..5adf22f31f94 100644 --- a/pkgs/by-name/ms/msedit/package.nix +++ b/pkgs/by-name/ms/msedit/package.nix @@ -22,6 +22,12 @@ rustPlatform.buildRustPackage (finalAttrs: { # Requires nightly features env.RUSTC_BOOTSTRAP = 1; + # Without -headerpad, the following error occurs on x86_64-darwin + # error: install_name_tool: changing install names or rpaths can't be redone for: ... because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names) + NIX_LDFLAGS = lib.optionals (with stdenv.hostPlatform; isDarwin && isx86_64) [ + "-headerpad_max_install_names" + ]; + buildInputs = [ icu ];