Merge #174038: makeBinaryWrapper: fix codesign on aarch64-darwin

...into staging-next
This commit is contained in:
Vladimír Čunát 2022-05-23 10:27:37 +02:00
commit 063c5603cf
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -1,6 +1,5 @@
{ stdenv
, lib
, darwin
, makeSetupHook
, dieHook
, writeShellScript
@ -12,7 +11,7 @@
makeSetupHook {
deps = [ dieHook ]
# https://github.com/NixOS/nixpkgs/issues/148189
++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) darwin.cctools;
++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) cc;
substitutions = {
cc = "${cc}/bin/cc ${lib.escapeShellArgs (map (s: "-fsanitize=${s}") sanitizers)}";