2021-01-04 01:11:33 +01:00
|
|
|
{ callPackage, config, kakouneUtils, lib }:
|
2019-09-03 22:54:37 +02:00
|
|
|
|
2021-01-04 00:41:46 +01:00
|
|
|
let
|
2019-09-03 22:54:37 +02:00
|
|
|
|
2021-01-04 00:41:46 +01:00
|
|
|
inherit (kakouneUtils.override {}) buildKakounePluginFrom2Nix;
|
|
|
|
|
|
|
|
plugins = callPackage ./generated.nix {
|
|
|
|
inherit buildKakounePluginFrom2Nix overrides;
|
|
|
|
};
|
|
|
|
|
|
|
|
# TL;DR
|
|
|
|
# * Add your plugin to ./kakoune-plugin-names
|
|
|
|
# * run ./update.py
|
|
|
|
#
|
|
|
|
# If additional modifications to the build process are required,
|
|
|
|
# add to ./overrides.nix.
|
|
|
|
overrides = callPackage ./overrides.nix {
|
|
|
|
inherit buildKakounePluginFrom2Nix;
|
|
|
|
};
|
|
|
|
|
2021-01-04 01:11:33 +01:00
|
|
|
aliases = lib.optionalAttrs (config.allowAliases or true) (import ./aliases.nix lib plugins);
|
|
|
|
|
2021-01-04 00:41:46 +01:00
|
|
|
in
|
|
|
|
|
2021-01-04 01:11:33 +01:00
|
|
|
plugins // aliases
|