1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 02:21:16 +02:00

Make lowdown optional

Co-authored-by: John Ericson <John.Ericson@Obsidian.Systems>
This commit is contained in:
Weijia Wang 2024-01-08 20:37:42 +01:00
parent 8e865f3aba
commit bbd0a959e1
3 changed files with 26 additions and 1 deletions

View file

@ -68,6 +68,9 @@
# Whether to build the regular manual
, enableManual ? __forDefaults.canRunInstalled
# Whether to enable Markdown rendering in the Nix binary.
, enableMarkdown ? !stdenv.hostPlatform.isWindows
# Whether to compile `rl-next.md`, the release notes for the next
# not-yet-released version of Nix in the manul, from the individual
# change log entries in the directory.
@ -213,6 +216,7 @@ in {
xz
] ++ lib.optionals (!stdenv.hostPlatform.isWindows) [
editline
] ++ lib.optionals enableMarkdown [
lowdown
] ++ lib.optionals buildUnitTests [
gtest
@ -269,6 +273,7 @@ in {
(lib.enableFeature doInstallCheck "functional-tests")
(lib.enableFeature enableInternalAPIDocs "internal-api-docs")
(lib.enableFeature enableManual "doc-gen")
(lib.enableFeature enableMarkdown "markdown")
(lib.enableFeature installUnitTests "install-unit-tests")
] ++ lib.optionals (!forDevShell) [
"--sysconfdir=/etc"