mirror of
https://github.com/nix-community/home-manager
synced 2024-11-01 00:39:45 +01:00
lib: add fallback for literalExpression and literalDocBook
This commit is contained in:
parent
a77a01d1f6
commit
468c461139
1 changed files with 7 additions and 1 deletions
|
@ -4,4 +4,10 @@
|
||||||
nixpkgsLib:
|
nixpkgsLib:
|
||||||
|
|
||||||
let mkHmLib = import ./.;
|
let mkHmLib = import ./.;
|
||||||
in nixpkgsLib.extend (self: super: { hm = mkHmLib { lib = super; }; })
|
in nixpkgsLib.extend (self: super: {
|
||||||
|
hm = mkHmLib { lib = self; };
|
||||||
|
|
||||||
|
# For forward compatibility.
|
||||||
|
literalExpression = super.literalExpression or super.literalExample;
|
||||||
|
literalDocBook = super.literalDocBook or super.literalExample;
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue