mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
lib/extend-lib.nix returns a nixpkg's lib extended with our own helpers. This is exposed as `helpers.extendedLib`, but when evaluating our modules it should be assigned to `specialArgs.lib`. Outside of our modules you must still access our helpers via `config.lib.nixvim` or `config.lib.nixvim.extendedLib`. Within helpers' sub-sections, `lib` is the extended lib.
11 lines
271 B
Nix
11 lines
271 B
Nix
# Extends nixpkg's lib with our functions, as expected by our modules
|
|
{ lib, helpers }:
|
|
lib.extend (
|
|
final: prev: {
|
|
# Include our custom lib
|
|
nixvim = helpers;
|
|
|
|
# Merge in our maintainers
|
|
maintainers = prev.maintainers // import ./maintainers.nix;
|
|
}
|
|
)
|