synergy: fix build on aarch64-darwin
This commit is contained in:
parent
f7ecc5425c
commit
57b57170f4
|
@ -26,6 +26,7 @@
|
||||||
, avahi-compat
|
, avahi-compat
|
||||||
|
|
||||||
# MacOS / darwin
|
# MacOS / darwin
|
||||||
|
, darwin
|
||||||
, ApplicationServices
|
, ApplicationServices
|
||||||
, Carbon
|
, Carbon
|
||||||
, Cocoa
|
, Cocoa
|
||||||
|
@ -48,6 +49,7 @@ stdenv.mkDerivation rec {
|
||||||
patches = [
|
patches = [
|
||||||
# Without this OpenSSL from nixpkgs is not detected
|
# Without this OpenSSL from nixpkgs is not detected
|
||||||
./darwin-non-static-openssl.patch
|
./darwin-non-static-openssl.patch
|
||||||
|
] ++ lib.optionals (stdenv.isDarwin && !(darwin.apple_sdk.frameworks ? UserNotifications)) [
|
||||||
# We cannot include UserNotifications because of a build failure in the Apple SDK.
|
# We cannot include UserNotifications because of a build failure in the Apple SDK.
|
||||||
# The functions used from it are already implicitly included anyways.
|
# The functions used from it are already implicitly included anyways.
|
||||||
./darwin-no-UserNotifications-includes.patch
|
./darwin-no-UserNotifications-includes.patch
|
||||||
|
@ -76,6 +78,8 @@ stdenv.mkDerivation rec {
|
||||||
Cocoa
|
Cocoa
|
||||||
CoreServices
|
CoreServices
|
||||||
ScreenSaver
|
ScreenSaver
|
||||||
|
] ++ lib.optionals (stdenv.isDarwin && darwin.apple_sdk.frameworks ? UserNotifications) [
|
||||||
|
darwin.apple_sdk.frameworks.UserNotifications
|
||||||
] ++ lib.optionals stdenv.isLinux [
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
util-linux
|
util-linux
|
||||||
libselinux
|
libselinux
|
||||||
|
@ -97,7 +101,8 @@ stdenv.mkDerivation rec {
|
||||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-inconsistent-missing-override";
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-inconsistent-missing-override";
|
||||||
|
|
||||||
cmakeFlags = lib.optional (!withGUI) "-DSYNERGY_BUILD_LEGACY_GUI=OFF"
|
cmakeFlags = lib.optional (!withGUI) "-DSYNERGY_BUILD_LEGACY_GUI=OFF"
|
||||||
++ lib.optional stdenv.isDarwin "-DCMAKE_OSX_DEPLOYMENT_TARGET=${stdenv.targetPlatform.darwinSdkVersion}";
|
# NSFilenamesPboardType is deprecated in 10.14+
|
||||||
|
++ lib.optional stdenv.isDarwin "-DCMAKE_OSX_DEPLOYMENT_TARGET=${if stdenv.isAarch64 then "10.13" else stdenv.targetPlatform.darwinSdkVersion}";
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue