mc: fix code signature on aarch64-darwin

launchpad/nixpkgs/master
Andrew Childs 3 years ago
parent 755d980440
commit aadc07a3d9
  1. 8
      pkgs/tools/misc/mc/default.nix
  2. 4
      pkgs/top-level/all-packages.nix

@ -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

@ -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 { };

Loading…
Cancel
Save