Merge pull request #114893 from bobrik/ivan/pinentry-mac-aarch64
pinentry_mac: make it compile on arm64
This commit is contained in:
commit
71fa142f9a
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -7171,7 +7171,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 { };
|
||||
|
|
Loading…
Reference in a new issue