From 08bddc4fc7219246aa17d0e03e27d4517462c8ad Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 25 Apr 2024 17:22:23 +0200 Subject: override enchant with support for applespell on macOS --- user/overlays/extra-packages.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'user/overlays') diff --git a/user/overlays/extra-packages.nix b/user/overlays/extra-packages.nix index 19490dca..ebe4fb0c 100644 --- a/user/overlays/extra-packages.nix +++ b/user/overlays/extra-packages.nix @@ -9,4 +9,14 @@ self: super: { } ) ); + 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; + }); } -- cgit 1.4.1