pinentry_mac: make it compile on arm64

This commit is contained in:
Ivan Babrou 2021-02-24 23:00:09 -08:00 committed by github-actions[bot]
parent 394bc6c138
commit 4aff0e523a
2 changed files with 7 additions and 1 deletions

View file

@ -14,6 +14,12 @@ stdenv.mkDerivation {
nativeBuildInputs = [ xcbuildHook ];
buildInputs = [ libiconv ncurses Cocoa ];
preBuild = ''
# Only build for what we care about (also allows arm64)
substituteInPlace pinentry-mac.xcodeproj/project.pbxproj \
--replace "i386 x86_64 ppc" "${stdenv.targetPlatform.darwinArch}"
'';
installPhase = ''
mkdir -p $out/Applications
mv Products/Release/pinentry-mac.app $out/Applications

View file

@ -7142,7 +7142,7 @@ in
pinentry_mac = callPackage ../tools/security/pinentry/mac.nix {
inherit (darwin.apple_sdk.frameworks) Cocoa;
xcbuildHook = xcbuild6Hook;
xcbuildHook = if stdenv.targetPlatform.isAarch64 then xcbuildHook else xcbuild6Hook;
};
pingtcp = callPackage ../tools/networking/pingtcp { };