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 {
|
path = mkOptionType {
|
||||||
name = "path";
|
name = "path";
|
||||||
# Hacky: there is no ‘isPath’ primop.
|
# Hacky: there is no ‘isPath’ primop.
|
||||||
# need to check isString first because otherwise toString throws an error.
|
check = x: builtins.substring 0 1 (toString x) == "/";
|
||||||
check = x: builtins.isString x && builtins.substring 0 1 (toString x) == "/";
|
|
||||||
merge = mergeOneOption;
|
merge = mergeOneOption;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user