diff --git a/lib/generators.nix b/lib/generators.nix index 431b93c4ebbc..40e88b563490 100644 --- a/lib/generators.nix +++ b/lib/generators.nix @@ -243,7 +243,7 @@ rec { toYAML = {}@args: toJSON args; withRecursion = - args@{ + { /* If this option is not null, the given value will stop evaluating at a certain depth */ depthLimit /* If this option is true, an error will be thrown, if a certain given depth is exceeded */ @@ -287,7 +287,7 @@ rec { allowPrettyValues ? false, /* If this option is true, the output is indented with newlines for attribute sets and lists */ multiline ? true - }@args: + }: let go = indent: v: with builtins; let isPath = v: typeOf v == "path";