1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-04-15 16:56:37 +00:00

eval-config.nix: readd lib.mdDoc temporarily

Fixes: #701
This commit is contained in:
Emily 2023-06-21 21:28:01 +01:00
parent ed275afbba
commit 737cfdec9c

View file

@ -46,6 +46,11 @@ let
# Added in nixpkgs #136909, adds forward compatibility until 22.03 is deprecated.
literalExpression = super.literalExpression or super.literalExample;
literalDocBook = super.literalDocBook or super.literalExample;
# Removed in nixpkgs #237557, readded to faciliate Markdown transition.
mdDoc = text:
if ! self.isString text then throw "mdDoc expects a string."
else { _type = "mdDoc"; inherit text; };
});
eval = libExtended.evalModules (builtins.removeAttrs args [ "lib" "inputs" "pkgs" "system" ] // {