summary refs log tree commit diff stats
path: root/overlays/extra-packages.nix
blob: 0e0451d0009bc4673136c26a46f75a769347c674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
self: super: {
  vimPlugins = super.vimPlugins.extend (final: prev: {
    coc-tabnine =
      let
        inherit (super) tabnine;
      in
      prev.coc-tabnine.overrideAttrs {
        buildInputs = [ tabnine ];

        postFixup = ''
          mkdir -p $target/binaries/${tabnine.version}
          ln -s ${tabnine}/bin/ $target/binaries/${tabnine.version}/${tabnine.passthru.platform}
        '';
      };
  });
  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;
  });
}