mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
b886ad90e7
Python's `sorted` method works a little differently than `sort` in the handling of dashes.
29 lines
772 B
Nix
29 lines
772 B
Nix
# TODO check that no license information gets lost
|
|
{ callPackage, config, lib, vimUtils, vim, darwin, llvmPackages }:
|
|
|
|
let
|
|
|
|
inherit (vimUtils.override {inherit vim;}) buildVimPluginFrom2Nix;
|
|
|
|
plugins = callPackage ./generated.nix {
|
|
inherit buildVimPluginFrom2Nix overrides;
|
|
};
|
|
|
|
# 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 = lib.optionalAttrs (config.allowAliases or true) (import ./aliases.nix lib plugins);
|
|
|
|
in
|
|
|
|
plugins // aliases
|