mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 23:16:46 +00:00
14 lines
517 B
Nix
14 lines
517 B
Nix
# 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;
|
|
})
|