mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
lib/types: add descriptionClass
for path
This commit is contained in:
parent
bc5ad97078
commit
025f32f705
@ -478,6 +478,7 @@ rec {
|
||||
|
||||
path = mkOptionType {
|
||||
name = "path";
|
||||
descriptionClass = "noun";
|
||||
check = x: isCoercibleToString x && builtins.substring 0 1 (toString x) == "/";
|
||||
merge = mergeEqualOption;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user