1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-05 10:49:44 +01:00
home-manager/modules/lib/stdlib-extended.nix

14 lines
390 B
Nix
Raw Normal View History

# Just a convenience function that returns the given Nixpkgs standard
# library extended with the HM library.
nixpkgsLib:
2020-02-02 00:39:17 +01:00
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;
})