3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/kakoune/plugins/default.nix
Robert Hensing 200175a701 config.allowAliases: Define as option
This simplifies usages and makes the default value consistent.

In a few cases, the default value was interpreted to be `false`,
but this is useless, because virtually nobody will explicitly
set `allowAliases = true;`.
2022-04-01 11:33:10 +02:00

26 lines
593 B
Nix

{ callPackage, config, kakouneUtils, lib }:
let
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;
};
aliases = lib.optionalAttrs config.allowAliases (import ./aliases.nix lib plugins);
in
plugins // aliases