Merge pull request #48251 from samueldr/feature/separated-string-description

lib/types: enhances separatedString's description.
This commit is contained in:
Ryan Mulligan 2018-10-12 16:41:21 -07:00 committed by GitHub
commit 1bde5ec7e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,10 @@ rec {
# separator between the values).
separatedString = sep: mkOptionType rec {
name = "separatedString";
description = "string";
description = if sep == ""
then "Concatenated string" # for types.string.
else "strings concatenated with ${builtins.toJSON sep}"
;
check = isString;
merge = loc: defs: concatStringsSep sep (getValues defs);
functor = (defaultFunctor name) // {