aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/generate-manpage.nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-09-13 14:41:28 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-09-13 14:45:21 +0200
commit49a932fb18add471feefc469fb45fc44313bd5c6 (patch)
tree716a8abc8682f190b22d1b2fecb4ed45bb87ae55 /doc/manual/generate-manpage.nix
parent14205debb244b925d685e3645c4deef937fa78ec (diff)
nix --help: Display help using lowdown instead of man
Fixes #4476. Fixes #5231.
Diffstat (limited to 'doc/manual/generate-manpage.nix')
-rw-r--r--doc/manual/generate-manpage.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual/generate-manpage.nix b/doc/manual/generate-manpage.nix
index 964b57086..4fc9abea1 100644
--- a/doc/manual/generate-manpage.nix
+++ b/doc/manual/generate-manpage.nix
@@ -89,7 +89,7 @@ let
in
let
- manpages = processCommand { filename = "nix"; command = "nix"; def = command; };
+ manpages = processCommand { filename = "nix"; command = "nix"; def = builtins.fromJSON command; };
summary = concatStrings (map (manpage: " - [${manpage.command}](command-ref/new-cli/${manpage.name})\n") manpages);
in
(listToAttrs manpages) // { "SUMMARY.md" = summary; }