mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
lib.types.path: Do not allow lists of strings
This commit is contained in:
parent
fed5dc66f8
commit
29efb2c438
@ -54,7 +54,6 @@ let
|
||||
concatStringsSep
|
||||
escapeNixString
|
||||
hasInfix
|
||||
isMoreCoercibleToString
|
||||
isSimpleCoercibleToString
|
||||
;
|
||||
inherit (lib.trivial)
|
||||
@ -480,7 +479,7 @@ rec {
|
||||
path = mkOptionType {
|
||||
name = "path";
|
||||
descriptionClass = "noun";
|
||||
check = x: isMoreCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
|
||||
check = x: isSimpleCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
|
||||
merge = mergeEqualOption;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user