1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

makeBinaryWrapper: remove cc dependency on aarch64-darwin

This commit is contained in:
Theodore Ni 2023-08-04 10:14:20 -07:00
parent 09f5e7d840
commit ca73fb024a
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -1,5 +1,4 @@
{ stdenv
, targetPackages
{ targetPackages
, lib
, makeSetupHook
, dieHook
@ -11,9 +10,7 @@
makeSetupHook {
name = "make-binary-wrapper-hook";
propagatedBuildInputs = [ dieHook ]
# https://github.com/NixOS/nixpkgs/issues/148189
++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) cc;
propagatedBuildInputs = [ dieHook ];
substitutions = {
cc = "${cc}/bin/${cc.targetPrefix}cc ${lib.escapeShellArgs (map (s: "-fsanitize=${s}") sanitizers)}";