lib.types.path: Do not allow lists of strings
This commit is contained in:
parent
fed5dc66f8
commit
29efb2c438
1 changed files with 1 additions and 2 deletions
|
@ -54,7 +54,6 @@ let
|
||||||
concatStringsSep
|
concatStringsSep
|
||||||
escapeNixString
|
escapeNixString
|
||||||
hasInfix
|
hasInfix
|
||||||
isMoreCoercibleToString
|
|
||||||
isSimpleCoercibleToString
|
isSimpleCoercibleToString
|
||||||
;
|
;
|
||||||
inherit (lib.trivial)
|
inherit (lib.trivial)
|
||||||
|
@ -480,7 +479,7 @@ rec {
|
||||||
path = mkOptionType {
|
path = mkOptionType {
|
||||||
name = "path";
|
name = "path";
|
||||||
descriptionClass = "noun";
|
descriptionClass = "noun";
|
||||||
check = x: isMoreCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
|
check = x: isSimpleCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
|
||||||
merge = mergeEqualOption;
|
merge = mergeEqualOption;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue