1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

Make useAnchors a named argument

This commit is contained in:
Eelco Dolstra 2023-03-23 10:08:49 +01:00
parent 80f0b8d307
commit 2851e239a7
3 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ rec {
filterAttrs = pred: set:
listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));
showSetting = useAnchors: name: { description, documentDefault, defaultValue, aliases, ... }:
showSetting = { useAnchors }: name: { description, documentDefault, defaultValue, aliases, ... }:
let
result = squash ''
- ${if useAnchors
@ -79,5 +79,5 @@ rec {
in result;
showSettings = useAnchors: settingsInfo: concatStrings (attrValues (mapAttrs (showSetting useAnchors) settingsInfo));
showSettings = args: settingsInfo: concatStrings (attrValues (mapAttrs (showSetting args) settingsInfo));
}