3
0
Fork 0
forked from mirrors/nixpkgs

mc: fix code signature on aarch64-darwin

This commit is contained in:
Andrew Childs 2021-02-12 12:11:43 +09:00
parent 755d980440
commit aadc07a3d9
2 changed files with 10 additions and 2 deletions

View file

@ -16,6 +16,7 @@
, openssl
, coreutils
, autoreconfHook
, autoSignDarwinBinariesHook
}:
stdenv.mkDerivation rec {
@ -27,7 +28,12 @@ stdenv.mkDerivation rec {
sha256 = "sha256-xt6txQWV8tmiLcbCmanyizk+NYNG6/bKREqEadwWbCc=";
};
nativeBuildInputs = [ pkg-config autoreconfHook unzip ];
nativeBuildInputs = [ pkg-config autoreconfHook unzip ]
# The preFixup hook rewrites the binary, which invaliates the code
# signature. Add the fixup hook to sign the output.
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
autoSignDarwinBinariesHook
];
buildInputs = [
file

View file

@ -6695,7 +6695,9 @@ in
mbutil = python3Packages.callPackage ../applications/misc/mbutil { };
mc = callPackage ../tools/misc/mc { };
mc = callPackage ../tools/misc/mc {
inherit (darwin) autoSignDarwinBinariesHook;
};
mcabber = callPackage ../applications/networking/instant-messengers/mcabber { };