1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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:
Benno Fünfstück 2015-08-15 15:38:12 +02:00
parent e6f1e1e5db
commit 7cd6b3cf76

View file

@ -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;
};