2014-11-08 18:34:13 +00:00
|
|
|
# TODO check that no license information gets lost
|
2019-06-16 19:59:06 +00:00
|
|
|
{ callPackage, config, lib, vimUtils, vim, darwin, llvmPackages }:
|
2013-05-27 16:29:35 +00:00
|
|
|
|
2014-12-04 14:32:29 +00:00
|
|
|
let
|
2014-11-08 18:34:13 +00:00
|
|
|
|
2018-07-20 19:36:12 +00:00
|
|
|
inherit (vimUtils.override {inherit vim;}) buildVimPluginFrom2Nix;
|
2018-07-08 00:08:48 +00:00
|
|
|
|
2020-03-30 20:28:02 +00:00
|
|
|
inherit (lib) extends;
|
|
|
|
|
|
|
|
initialPackages = self: {};
|
|
|
|
|
2018-12-27 10:12:48 +00:00
|
|
|
plugins = callPackage ./generated.nix {
|
2020-03-30 20:28:02 +00:00
|
|
|
inherit buildVimPluginFrom2Nix;
|
2016-10-06 16:34:39 +00:00
|
|
|
};
|
|
|
|
|
2018-09-14 04:36:29 +00:00
|
|
|
# TL;DR
|
|
|
|
# * Add your plugin to ./vim-plugin-names
|
|
|
|
# * run ./update.py
|
|
|
|
#
|
|
|
|
# If additional modifications to the build process are required,
|
|
|
|
# add to ./overrides.nix.
|
|
|
|
overrides = callPackage ./overrides.nix {
|
|
|
|
inherit (darwin.apple_sdk.frameworks) Cocoa CoreFoundation CoreServices;
|
|
|
|
inherit buildVimPluginFrom2Nix;
|
2018-09-22 15:52:35 +00:00
|
|
|
inherit llvmPackages;
|
2015-07-09 02:09:13 +00:00
|
|
|
};
|
|
|
|
|
2021-05-17 19:39:24 +00:00
|
|
|
aliases = if (config.allowAliases or true) then (import ./aliases.nix lib) else final: prev: {};
|
2018-07-08 00:08:48 +00:00
|
|
|
|
2020-03-30 20:28:02 +00:00
|
|
|
extensible-self = lib.makeExtensible
|
|
|
|
(extends aliases
|
|
|
|
(extends overrides
|
|
|
|
(extends plugins initialPackages)
|
|
|
|
)
|
|
|
|
);
|
2018-09-14 04:36:29 +00:00
|
|
|
in
|
2020-03-30 20:28:02 +00:00
|
|
|
extensible-self
|