mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
espanso: fix build on darwin
This commit is contained in:
parent
cc31b35e17
commit
ae6ec03e3e
2 changed files with 13 additions and 2 deletions
|
@ -11,6 +11,10 @@
|
|||
, xclip
|
||||
, xdotool
|
||||
, makeWrapper
|
||||
, stdenv
|
||||
, AppKit
|
||||
, Cocoa
|
||||
, Foundation
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
|
@ -39,7 +43,12 @@ rustPlatform.buildRustPackage rec {
|
|||
libnotify
|
||||
xclip
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
xdotool
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
AppKit
|
||||
Cocoa
|
||||
Foundation
|
||||
];
|
||||
|
||||
# Some tests require networking
|
||||
|
@ -55,7 +64,7 @@ rustPlatform.buildRustPackage rec {
|
|||
homepage = "https://espanso.org";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ kimat ];
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
|
||||
longDescription = ''
|
||||
Espanso detects when you type a keyword and replaces it while you're typing.
|
||||
|
|
|
@ -3752,7 +3752,9 @@ with pkgs;
|
|||
|
||||
eschalot = callPackage ../tools/security/eschalot { };
|
||||
|
||||
espanso = callPackage ../applications/office/espanso { };
|
||||
espanso = callPackage ../applications/office/espanso {
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Foundation;
|
||||
};
|
||||
|
||||
esphome = callPackage ../tools/misc/esphome { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue