all repos — nixfiles @ 08bddc4fc7219246aa17d0e03e27d4517462c8ad

System and user configuration, managed by nix and home-manager

override enchant with support for applespell on macOS

Alan Pearce
commit

08bddc4fc7219246aa17d0e03e27d4517462c8ad

parent

798453ea55052c6af1752c1d6b1243e7c2591afd

1 file changed, 10 insertions(+), 0 deletions(-)

changed files
M user/overlays/extra-packages.nixuser/overlays/extra-packages.nix
@@ -9,4 +9,14 @@ };
} ) ); + enchant = super.enchant.overrideAttrs (old: { + configureFlags = old.configureFlags ++ [ "--without-hspell" ] + # builtins.filter (c: c != "--with-hspell") old.configureFlags + ++ self.lib.optional super.stdenv.isDarwin "--with-applespell" + ; + buildInputs = + builtins.filter (c: c.name != "hspell") old.buildInputs + ++ self.lib.optionals super.stdenv.isDarwin (with super.darwin.apple_sdk.frameworks; [ Cocoa ]); + propagatedBuildInputs = builtins.filter (c: c.name != "hspell") old.propagatedBuildInputs; + }); }