summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmily <vcs@emily.moe>2023-06-21 21:28:01 +0100
committerEmily <vcs@emily.moe>2023-06-21 22:55:32 +0100
commit737cfdec9ce54eed56b4f9c281bbd892ebf5dc6b (patch)
treef7bc83361830b93796bd51d92230e3d6d687ced5
parented275afbbaad9b0670e2aeac3ae542595255d604 (diff)
eval-config.nix: readd `lib.mdDoc` temporarily
Fixes: #701
-rw-r--r--eval-config.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/eval-config.nix b/eval-config.nix
index c30d88c..cc0772d 100644
--- a/eval-config.nix
+++ b/eval-config.nix
@@ -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" ] // {