diff options
author | Artemis Tosini <me@artem.ist> | 2024-05-14 13:38:34 -0700 |
---|---|---|
committer | Audrey Dutcher <audrey@rhelmot.io> | 2024-05-17 12:52:49 -0700 |
commit | 0c34636a5690cf8d75ecbab62d41179c56571f79 (patch) | |
tree | 20ae0474a44460d743071b1bbbc8b7304bd08141 /pkgs/build-support/setup-hooks | |
parent | 4dec85d68b81ed971e7f2953cfea895f0f0c0c2c (diff) |
make-binary-wrapper: add cc to propagatedBuildInputs
Adding cc to propagatedBuildInputs makes derivations with makeBinaryWrapper in nativeBuildInputs run the cc-wrapper setup hook. This isn't an issue for derivations using stdenv, as the cc setup hook is already run by default. However, derivations that are made with stdenvNoCC, e.g. because they're made with runCommand, will not run the cc-wrapper setup hook without this change. For some reason the FreeBSD native compiler will not work correctly without the setup hook.
Diffstat (limited to 'pkgs/build-support/setup-hooks')
-rw-r--r-- | pkgs/build-support/setup-hooks/make-binary-wrapper/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/make-binary-wrapper/default.nix b/pkgs/build-support/setup-hooks/make-binary-wrapper/default.nix index f364dd5de753d..28ad330278539 100644 --- a/pkgs/build-support/setup-hooks/make-binary-wrapper/default.nix +++ b/pkgs/build-support/setup-hooks/make-binary-wrapper/default.nix @@ -10,7 +10,7 @@ makeSetupHook { name = "make-binary-wrapper-hook"; - propagatedBuildInputs = [ dieHook ]; + propagatedBuildInputs = [ dieHook cc ]; substitutions = { cc = "${cc}/bin/${cc.targetPrefix}cc ${lib.escapeShellArgs (map (s: "-fsanitize=${s}") sanitizers)}"; |