mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
8c63ac7893
let update.py generates generated.nix as an overlay. This should help maintaining vim-plugins outside of nixpkgs, as one can use update.py to generate an out-of-tree vimPlugins overlay.
38 lines
962 B
Nix
38 lines
962 B
Nix
# TODO check that no license information gets lost
|
|
{ callPackage, config, lib, vimUtils, vim, darwin, llvmPackages }:
|
|
|
|
let
|
|
|
|
inherit (vimUtils.override {inherit vim;}) buildVimPluginFrom2Nix;
|
|
|
|
inherit (lib) extends;
|
|
|
|
initialPackages = self: {};
|
|
|
|
plugins = callPackage ./generated.nix {
|
|
inherit buildVimPluginFrom2Nix;
|
|
};
|
|
|
|
# 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;
|
|
};
|
|
|
|
aliases = if (config.allowAliases or true) then final: prev: {} else (import ./aliases.nix lib);
|
|
|
|
extensible-self = lib.makeExtensible
|
|
(extends aliases
|
|
(extends overrides
|
|
(extends plugins initialPackages)
|
|
)
|
|
);
|
|
in
|
|
extensible-self
|