diff options
author | Jan Malakhovski <oxij@oxij.org> | 2018-02-11 22:41:06 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2018-02-11 22:41:06 +0000 |
commit | b468f98b02275a2ef37422576cbfcc896097980c (patch) | |
tree | c58a1a1ee5bb13e01193aea721ffed4a61470536 | |
parent | 252ec7da0a1d624db46b299052122b4a5dbf3254 (diff) | |
download | nixlib-b468f98b02275a2ef37422576cbfcc896097980c.tar nixlib-b468f98b02275a2ef37422576cbfcc896097980c.tar.gz nixlib-b468f98b02275a2ef37422576cbfcc896097980c.tar.bz2 nixlib-b468f98b02275a2ef37422576cbfcc896097980c.tar.lz nixlib-b468f98b02275a2ef37422576cbfcc896097980c.tar.xz nixlib-b468f98b02275a2ef37422576cbfcc896097980c.tar.zst nixlib-b468f98b02275a2ef37422576cbfcc896097980c.zip |
nixos: doc: trivial cleanup and docstring fix
-rw-r--r-- | nixos/doc/manual/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/doc/manual/default.nix b/nixos/doc/manual/default.nix index e7d6c822e51f..bbe82066aa0c 100644 --- a/nixos/doc/manual/default.nix +++ b/nixos/doc/manual/default.nix @@ -63,8 +63,8 @@ let stripAnyPrefixes = lib.flip (lib.fold lib.removePrefix) prefixesToStrip; # Custom "less" that pushes up all the things ending in ".enable*" - # and ".package" - optionListLess = a: b: + # and ".package*" + optionLess = a: b: let ise = lib.hasPrefix "enable"; isp = lib.hasPrefix "package"; @@ -73,7 +73,7 @@ let in lib.compareLists cmp a.loc b.loc < 0; # Customly sort option list for the man page. - optionsList = lib.sort optionListLess optionsListDesc; + optionsList = lib.sort optionLess optionsListDesc; # Convert the list of options into an XML file. optionsXML = builtins.toFile "options.xml" (builtins.toXML optionsList); |