Merge pull request #200198 from NixOS/path-is-noun

lib/types: add `descriptionClass` for `path`
This commit is contained in:
Silvan Mosberger 2022-11-08 13:50:38 +01:00 committed by GitHub
commit f0672db30b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -478,6 +478,7 @@ rec {
path = mkOptionType {
name = "path";
descriptionClass = "noun";
check = x: isCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
merge = mergeEqualOption;
};