espanso: fix build on Darwin

Use the 11.0 SDK with a 10.13 deployment target.
This commit is contained in:
Randy Eckenrode
2024-10-10 01:07:14 -04:00
parent e694240f77
commit 80fdf7d31f
2 changed files with 5 additions and 32 deletions
+4 -29
View File
@@ -18,17 +18,8 @@
, wxGTK32
, makeWrapper
, stdenv
, AppKit
, Cocoa
, Foundation
, IOKit
, Kernel
, AVFoundation
, Carbon
, QTKit
, AVKit
, WebKit
, System
, apple-sdk_11
, darwinMinVersionHook
, waylandSupport ? false
, x11Support ? stdenv.hostPlatform.isLinux
, testers
@@ -83,17 +74,8 @@ rustPlatform.buildRustPackage rec {
libnotify
libxkbcommon
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
AppKit
Cocoa
Foundation
IOKit
Kernel
AVFoundation
Carbon
QTKit
AVKit
WebKit
System
apple-sdk_11
(darwinMinVersionHook "10.13")
] ++ lib.optionals waylandSupport [
wl-clipboard
] ++ lib.optionals x11Support [
@@ -148,13 +130,6 @@ rustPlatform.buildRustPackage rec {
license = licenses.gpl3Plus;
maintainers = with maintainers; [ kimat pyrox0 n8henrie ];
platforms = platforms.unix;
# With apple_sdk_10_12,
# kCFURLVolumeAvailableCapacityForImportantUsageKey
# is undefined.
# With apple_sdk_11_0, there is an issue with
# kColorSyncGenericGrayProfile.
broken = stdenv.hostPlatform.system == "x86_64-darwin";
longDescription = ''
Espanso detects when you type a keyword and replaces it while you're typing.
+1 -3
View File
@@ -4855,9 +4855,7 @@ with pkgs;
eschalot = callPackage ../tools/security/eschalot { };
espanso = callPackage ../applications/office/espanso {
inherit (darwin.apple_sdk_11_0.frameworks) AppKit Cocoa Foundation IOKit Kernel AVFoundation Carbon QTKit AVKit WebKit System;
};
espanso = callPackage ../applications/office/espanso { };
espanso-wayland = espanso.override {
x11Support = false;
waylandSupport = true;