mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 23:16:46 +00:00
19 lines
644 B
Nix
19 lines
644 B
Nix
# Cconvenience function that returns the given Nixpkgs standard library
|
|
# extended with our functions using `lib.extend`.
|
|
nixpkgsLib: inputs: let
|
|
mkNvimLib = import ./.;
|
|
in
|
|
# WARNING: New functions should not be added here, but to files
|
|
# imported by `./default.nix` under their own categories. If your
|
|
# 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 {
|
|
inherit inputs;
|
|
lib = self;
|
|
};
|
|
|
|
# For forward compatibility.
|
|
literalExpression = super.literalExpression or super.literalExample;
|
|
})
|