enchant: enable optional Applespell support on darwin
This commit is contained in:
parent
5141183658
commit
7ee75d6aa9
@ -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; {
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user