From b468f98b02275a2ef37422576cbfcc896097980c Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 11 Feb 2018 22:41:06 +0000 Subject: nixos: doc: trivial cleanup and docstring fix --- nixos/doc/manual/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nixos/doc') 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); -- cgit 1.4.1