1# TODO check that no license information gets lost
2{ callPackage, config, lib, vimUtils, vim, darwin, llvmPackages }:
3
4let
5
6 inherit (vimUtils.override {inherit vim;}) buildVimPluginFrom2Nix;
7
8 inherit (lib) extends;
9
10 initialPackages = self: {};
11
12 plugins = callPackage ./generated.nix {
13 inherit buildVimPluginFrom2Nix;
14 };
15
16 # TL;DR
17 # * Add your plugin to ./vim-plugin-names
18 # * run ./update.py
19 #
20 # If additional modifications to the build process are required,
21 # add to ./overrides.nix.
22 overrides = callPackage ./overrides.nix {
23 inherit (darwin.apple_sdk.frameworks) Cocoa CoreFoundation CoreServices;
24 inherit buildVimPluginFrom2Nix;
25 inherit llvmPackages;
26 };
27
28 aliases = if (config.allowAliases or true) then (import ./aliases.nix lib) else final: prev: {};
29
30 extensible-self = lib.makeExtensible
31 (extends aliases
32 (extends overrides
33 (extends plugins initialPackages)
34 )
35 );
36in
37 extensible-self