enchant: enable optional Applespell support on darwin

This commit is contained in:
Alan Pearce 2024-05-10 16:51:16 +02:00
parent 5141183658
commit 7ee75d6aa9
2 changed files with 11 additions and 1 deletions

View File

@ -14,8 +14,13 @@
, withAspell ? true
, withHunspell ? true
, withNuspell ? true
, withAppleSpell ? stdenv.isDarwin
, Cocoa
}:
assert withAppleSpell -> stdenv.isDarwin;
stdenv.mkDerivation rec {
pname = "enchant";
version = "2.6.9";
@ -40,6 +45,8 @@ stdenv.mkDerivation rec {
hunspell
] ++ lib.optionals withNuspell [
nuspell
] ++ lib.optionals withAppleSpell [
Cocoa
];
checkInputs = [
@ -63,6 +70,7 @@ stdenv.mkDerivation rec {
(lib.withFeature withHspell "hspell")
(lib.withFeature withHunspell "hunspell")
(lib.withFeature withNuspell "nuspell")
(lib.withFeature withAppleSpell "applespell")
];
meta = with lib; {

View File

@ -20671,7 +20671,9 @@ with pkgs;
emanote = haskell.lib.compose.justStaticExecutables haskellPackages.emanote;
enchant2 = callPackage ../development/libraries/enchant/2.x.nix { };
enchant2 = callPackage ../development/libraries/enchant/2.x.nix {
inherit (darwin.apple_sdk.frameworks) Cocoa;
};
enchant = enchant2;
enet = callPackage ../development/libraries/enet { };