2014-11-08 10:34:13 -08:00
|
|
|
# TODO check that no license information gets lost
|
2019-06-16 12:59:06 -07:00
|
|
|
{ callPackage, config, lib, vimUtils, vim, darwin, llvmPackages }:
|
2013-05-27 09:29:35 -07:00
|
|
|
|
2014-12-04 06:32:29 -08:00
|
|
|
let
|
2014-11-08 10:34:13 -08:00
|
|
|
|
2018-07-20 12:36:12 -07:00
|
|
|
inherit (vimUtils.override {inherit vim;}) buildVimPluginFrom2Nix;
|
2018-07-07 17:08:48 -07:00
|
|
|
|
2018-12-27 02:12:48 -08:00
|
|
|
plugins = callPackage ./generated.nix {
|
|
|
|
inherit buildVimPluginFrom2Nix overrides;
|
2016-10-06 09:34:39 -07:00
|
|
|
};
|
|
|
|
|
2018-09-13 21:36:29 -07: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 08:52:35 -07:00
|
|
|
inherit llvmPackages;
|
2015-07-08 19:09:13 -07:00
|
|
|
};
|
|
|
|
|
2018-12-27 02:12:48 -08:00
|
|
|
aliases = lib.optionalAttrs (config.allowAliases or true) (import ./aliases.nix lib plugins);
|
2018-07-07 17:08:48 -07:00
|
|
|
|
2018-09-13 21:36:29 -07:00
|
|
|
in
|
2018-09-09 01:46:35 -07:00
|
|
|
|
2018-12-27 02:12:48 -08:00
|
|
|
plugins // aliases
|