mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
8255903b71
buildNeovimPluginFrom2Nix was cargo-culted from buildVimPluginFrom2Nix but this doesn't make sense. From2Nix referred to a way of building plugins that is not used anymore so buildVimPluginFrom2Nix could be renamed too.
43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
# TODO check that no license information gets lost
|
|
{ callPackage, config, lib, vimUtils, vim, darwin, llvmPackages
|
|
, neovimUtils
|
|
, luaPackages
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (vimUtils.override {inherit vim;})
|
|
buildVimPluginFrom2Nix;
|
|
|
|
inherit (lib) extends;
|
|
|
|
initialPackages = self: { };
|
|
|
|
plugins = callPackage ./generated.nix {
|
|
inherit buildVimPluginFrom2Nix;
|
|
inherit (neovimUtils) buildNeovimPlugin;
|
|
};
|
|
|
|
# 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;
|
|
inherit llvmPackages luaPackages;
|
|
};
|
|
|
|
aliases = if config.allowAliases then (import ./aliases.nix lib) else final: prev: {};
|
|
|
|
extensible-self = lib.makeExtensible
|
|
(extends aliases
|
|
(extends overrides
|
|
(extends plugins initialPackages)
|
|
)
|
|
);
|
|
in
|
|
extensible-self
|