Merge pull request #114893 from bobrik/ivan/pinentry-mac-aarch64
pinentry_mac: make it compile on arm64
This commit is contained in:
commit
71fa142f9a
|
@ -14,6 +14,12 @@ stdenv.mkDerivation {
|
||||||
nativeBuildInputs = [ xcbuildHook ];
|
nativeBuildInputs = [ xcbuildHook ];
|
||||||
buildInputs = [ libiconv ncurses Cocoa ];
|
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 = ''
|
installPhase = ''
|
||||||
mkdir -p $out/Applications
|
mkdir -p $out/Applications
|
||||||
mv Products/Release/pinentry-mac.app $out/Applications
|
mv Products/Release/pinentry-mac.app $out/Applications
|
||||||
|
|
|
@ -7171,7 +7171,7 @@ in
|
||||||
|
|
||||||
pinentry_mac = callPackage ../tools/security/pinentry/mac.nix {
|
pinentry_mac = callPackage ../tools/security/pinentry/mac.nix {
|
||||||
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
||||||
xcbuildHook = xcbuild6Hook;
|
xcbuildHook = if stdenv.targetPlatform.isAarch64 then xcbuildHook else xcbuild6Hook;
|
||||||
};
|
};
|
||||||
|
|
||||||
pingtcp = callPackage ../tools/networking/pingtcp { };
|
pingtcp = callPackage ../tools/networking/pingtcp { };
|
||||||
|
|
Loading…
Reference in New Issue