mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-13 10:44:34 +02:00
lib/*-plugin: use lib.mkPackageOption
internally
Instead of maintainers providing an actual `defaultPackage`, they should specify the pkg name which we'll use when calling `lib.mkPackageOption`. This makes `mkVimPlugin` and `mkNeovimPlugin` compliant with #1950.
This commit is contained in:
parent
c8bb7880bf
commit
285f6cbd7b
6 changed files with 150 additions and 109 deletions
|
@ -308,6 +308,7 @@ rec {
|
|||
);
|
||||
};
|
||||
|
||||
# TODO: Deprecated 2024-09-02; remove once all internal uses are gone
|
||||
mkPackageOption =
|
||||
args:
|
||||
# A default package is required
|
||||
|
@ -326,6 +327,7 @@ rec {
|
|||
}
|
||||
);
|
||||
|
||||
# TODO: Deprecated 2024-09-02; remove once all internal uses are gone
|
||||
mkPluginPackageOption =
|
||||
name: default:
|
||||
mkOption {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue