mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
refactor: move lib out of modules
This commit is contained in:
parent
206e17bbe4
commit
89be2b9d37
8 changed files with 334 additions and 0 deletions
13
lib/stdlib-extended.nix
Normal file
13
lib/stdlib-extended.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
# From home-manager: https://github.com/nix-community/home-manager/blob/master/modules/lib/stdlib-extended.nix
|
||||
# Just a convenience function that returns the given Nixpkgs standard
|
||||
# library extended with the HM library.
|
||||
nixpkgsLib: let
|
||||
mkNvimLib = import ./.;
|
||||
in
|
||||
nixpkgsLib.extend (self: super: {
|
||||
nvim = mkNvimLib {lib = self;};
|
||||
|
||||
# For forward compatibility.
|
||||
literalExpression = super.literalExpression or super.literalExample;
|
||||
literalDocBook = super.literalDocBook or super.literalExample;
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue