mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
lib: get rid of the redundant let in
block
This commit is contained in:
parent
b928f0bc4e
commit
6011ec2bab
1 changed files with 15 additions and 12 deletions
|
@ -1,18 +1,21 @@
|
||||||
# Cconvenience function that returns the given Nixpkgs standard library
|
# Convenience function that returns the given Nixpkgs standard library
|
||||||
# extended with our functions using `lib.extend`.
|
# extended with our functions using `lib.extend`.
|
||||||
nixpkgsLib: inputs: let
|
nixpkgsLib: inputs:
|
||||||
mkNvimLib = import ./.;
|
nixpkgsLib.extend (self: super: {
|
||||||
in
|
|
||||||
# WARNING: New functions should not be added here, but to files
|
# WARNING: New functions should not be added here, but to files
|
||||||
# imported by `./default.nix` under their own categories. If your
|
# imported by `./default.nix` under their own categories. If your
|
||||||
# function does not fit to any of the existing categories, create
|
# function does not fit to any of the existing categories, create
|
||||||
# a new file and import it in `./default.nix.`
|
# a new file and import it in `./default.nix.`
|
||||||
nixpkgsLib.extend (self: super: {
|
|
||||||
nvim = mkNvimLib {
|
# Makes our custom functions available under `lib.nvim` where stdlib-extended.nix is imported
|
||||||
|
# with the appropriate arguments. For end-users, a `lib` output will be accessible from the flake.
|
||||||
|
# E.g. for an input called `neovim-flake`, `inputs.neovim-flake.lib.nvim` will return the set
|
||||||
|
# below.
|
||||||
|
nvim = import ./. {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
lib = self;
|
lib = self;
|
||||||
};
|
};
|
||||||
|
|
||||||
# For forward compatibility.
|
# For forward compatibility.
|
||||||
literalExpression = super.literalExpression or super.literalExample;
|
literalExpression = super.literalExpression or super.literalExample;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue