2021-01-04 00:11:33 +00:00
|
|
|
{ callPackage, config, kakouneUtils, lib }:
|
2019-09-03 21:54:37 +01:00
|
|
|
|
2021-01-03 23:41:46 +00:00
|
|
|
let
|
2019-09-03 21:54:37 +01:00
|
|
|
|
2021-01-03 23:41:46 +00: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;
|
|
|
|
};
|
|
|
|
|
2022-04-01 10:33:10 +01:00
|
|
|
aliases = lib.optionalAttrs config.allowAliases (import ./aliases.nix lib plugins);
|
2021-01-04 00:11:33 +00:00
|
|
|
|
2021-01-03 23:41:46 +00:00
|
|
|
in
|
|
|
|
|
2021-01-04 00:11:33 +00:00
|
|
|
plugins // aliases
|