diff options
-rw-r--r-- | lib/strings.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/strings.nix b/lib/strings.nix index db89f60c480c..2188fcb1dbfd 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -18,6 +18,7 @@ rec { isInt isList isAttrs + isPath isString match parseDrvName @@ -821,7 +822,8 @@ rec { string interpolations and in most functions that expect a string. */ isStringLike = x: - elem (typeOf x) [ "path" "string" ] || + isString x || + isPath x || x ? outPath || x ? __toString; |