2020-10-12 00:22:58 +00:00
|
|
|
# Just a convenience function that returns the given Nixpkgs standard
|
|
|
|
# library extended with the HM library.
|
|
|
|
|
|
|
|
nixpkgsLib:
|
|
|
|
|
|
|
|
let mkHmLib = import ./.;
|
2021-11-04 16:42:44 +00:00
|
|
|
in nixpkgsLib.extend (self: super: {
|
|
|
|
hm = mkHmLib { lib = self; };
|
|
|
|
|
|
|
|
# For forward compatibility.
|
|
|
|
literalExpression = super.literalExpression or super.literalExample;
|
|
|
|
literalDocBook = super.literalDocBook or super.literalExample;
|
|
|
|
})
|