git.iko.soy/typeable/nixpkgs
on master help sign in
nixos: doc: trivial cleanup and docstring fix
commitb468f98b02275a2ef37422576cbfcc896097980c authorJan Malakhovski <oxij@oxij.org> dateSun 11 Feb 2018, 22:41 (9 years ago) parent252ec7d
1 file changed+3−3
nixos/doc/manual/default.nix+3−3
nixos/doc/manual/default.nix+3−3
@@ -63,8 +63,8 @@ let
6363 stripAnyPrefixes = lib.flip (lib.fold lib.removePrefix) prefixesToStrip;
6464
6565 # Custom "less" that pushes up all the things ending in ".enable*"
66− # and ".package"
67− optionListLess = a: b:
66+ # and ".package*"
67+ optionLess = a: b:
6868 let
6969 ise = lib.hasPrefix "enable";
7070 isp = lib.hasPrefix "package";
@@ -73,7 +73,7 @@ let
7373 in lib.compareLists cmp a.loc b.loc < 0;
7474
7575 # Customly sort option list for the man page.
76− optionsList = lib.sort optionListLess optionsListDesc;
76+ optionsList = lib.sort optionLess optionsListDesc;
7777
7878 # Convert the list of options into an XML file.
7979 optionsXML = builtins.toFile "options.xml" (builtins.toXML optionsList);