summary refs log tree commit diff stats
path: root/user/overlays/extra-packages.nix
blob: ebe4fb0c700fbb43757aeca35a24aad8170ed5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
self: super: {
  emacsPackagesFor = emacs: (
    (super.emacsPackagesFor emacs).overrideScope (
      eself: esuper:
        esuper // {
          tabnine-capf = super.callPackage ../packages/tabnine-capf.nix {
            inherit eself;
          };
        }
    )
  );
  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;
  });
}