2014-11-08 18:34:13 +00:00
|
|
|
# TODO check that no license information gets lost
|
2018-09-14 05:36:29 +01:00
|
|
|
{ callPackage, config, lib, stdenv, vimUtils, vim, darwin, llvmPackages }:
|
2013-05-27 17:29:35 +01:00
|
|
|
|
2014-12-04 14:32:29 +00:00
|
|
|
let
|
2014-11-08 18:34:13 +00:00
|
|
|
|
2018-07-20 20:36:12 +01:00
|
|
|
inherit (vimUtils.override {inherit vim;}) buildVimPluginFrom2Nix;
|
2018-07-08 01:08:48 +01:00
|
|
|
|
2018-09-09 09:46:35 +01:00
|
|
|
generated = callPackage ./generated.nix {
|
|
|
|
inherit buildVimPluginFrom2Nix;
|
2016-10-06 17:34:39 +01:00
|
|
|
};
|
|
|
|
|
2018-09-14 05:36:29 +01:00
|
|
|
# TL;DR
|
|
|
|
# * Add your plugin to ./vim-plugin-names
|
|
|
|
# * sort -udf ./vim-plugin-names > sorted && mv sorted 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;
|
2015-07-09 03:09:13 +01:00
|
|
|
};
|
|
|
|
|
2018-09-14 05:36:29 +01:00
|
|
|
overriden = generated // (overrides generated);
|
2018-07-08 01:08:48 +01:00
|
|
|
|
2018-09-14 05:36:29 +01:00
|
|
|
aliases = lib.optionalAttrs (config.allowAliases or true) (import ./aliases.nix lib overriden);
|
2018-07-08 01:08:48 +01:00
|
|
|
|
2018-09-14 05:36:29 +01:00
|
|
|
in
|
2018-09-09 09:46:35 +01:00
|
|
|
|
2018-09-14 05:36:29 +01:00
|
|
|
overriden // aliases
|