1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 18:57:08 +00:00

Merge pull request #704 from emilazy/readd-mddoc

eval-config.nix: readd `lib.mdDoc` temporarily
This commit is contained in:
Domen Kožar 2023-06-21 23:12:02 +01:00 committed by GitHub
commit bc346a67d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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" ] // {