forked from mirrors/nixpkgs
Revert change of path type
The change caused lots of evaluation errors, since it caused derivations to no longer be valid paths as well.
This commit is contained in:
parent
e6f1e1e5db
commit
7cd6b3cf76
|
@ -103,8 +103,7 @@ rec {
|
|||
path = mkOptionType {
|
||||
name = "path";
|
||||
# Hacky: there is no ‘isPath’ primop.
|
||||
# need to check isString first because otherwise toString throws an error.
|
||||
check = x: builtins.isString x && builtins.substring 0 1 (toString x) == "/";
|
||||
check = x: builtins.substring 0 1 (toString x) == "/";
|
||||
merge = mergeOneOption;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue