mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
17 lines
406 B
Nix
17 lines
406 B
Nix
# Just a convenience function that returns the given Nixpkgs standard
|
|
# library extended with the HM library.
|
|
|
|
nixpkgsLib:
|
|
|
|
let
|
|
mkHmLib = import ./.;
|
|
in
|
|
nixpkgsLib.extend (
|
|
self: super: {
|
|
hm = mkHmLib { lib = self; };
|
|
|
|
# For forward compatibility.
|
|
literalExpression = super.literalExpression or super.literalExample;
|
|
literalDocBook = super.literalDocBook or super.literalExample;
|
|
}
|
|
)
|