mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
flake: autodiscover plugin inputs
This commit is contained in:
parent
cf09a3bb8b
commit
859b03dfde
8 changed files with 1439 additions and 1524 deletions
|
@ -1,6 +1,6 @@
|
|||
# Cconvenience function that returns the given Nixpkgs standard library
|
||||
# extended with our functions using `lib.extend`.
|
||||
nixpkgsLib: let
|
||||
nixpkgsLib: inputs: let
|
||||
mkNvimLib = import ./.;
|
||||
in
|
||||
# WARNING: New functions should not be added here, but to files
|
||||
|
@ -8,7 +8,10 @@ in
|
|||
# function does not fit to any of the existing categories, create
|
||||
# a new file and import it in `./default.nix.`
|
||||
nixpkgsLib.extend (self: super: {
|
||||
nvim = mkNvimLib {lib = self;};
|
||||
nvim = mkNvimLib {
|
||||
inherit inputs;
|
||||
lib = self;
|
||||
};
|
||||
|
||||
# For forward compatibility.
|
||||
literalExpression = super.literalExpression or super.literalExample;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue