2024-04-09 08:18:16 +00:00
|
|
|
# Convenience function that returns the given Nixpkgs standard library
|
2024-04-07 15:31:06 +00:00
|
|
|
# extended with our functions using `lib.extend`.
|
2024-04-09 08:18:16 +00:00
|
|
|
nixpkgsLib: inputs:
|
|
|
|
nixpkgsLib.extend (self: super: {
|
2024-04-07 15:31:06 +00:00
|
|
|
# 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.`
|
2023-02-06 18:57:35 +00:00
|
|
|
|
2024-04-09 08:18:16 +00:00
|
|
|
# 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.
|
2024-04-27 12:51:22 +00:00
|
|
|
# E.g. for an input called `nvf`, `inputs.nvf.lib.nvim` will return the set
|
2024-04-09 08:18:16 +00:00
|
|
|
# below.
|
|
|
|
nvim = import ./. {
|
|
|
|
inherit inputs;
|
|
|
|
lib = self;
|
|
|
|
};
|
|
|
|
|
|
|
|
# For forward compatibility.
|
|
|
|
literalExpression = super.literalExpression or super.literalExample;
|
|
|
|
})
|