about summary refs log tree commit diff
path: root/default.nix
diff options
context:
space:
mode:
authorMichael Fellinger <github@manveru.dev>2019-09-16T10·27+0200
committerVincent Ambo <github@tazj.in>2019-09-17T14·29+0100
commit7b1e389c664bca731be8ba66730be946a904d84c (patch)
tree9fa17f4145999177b9a6a0c5d761a74f91583e9f /default.nix
parentafd2fd5058d14c99ca60e9be28ee778f5df1958d (diff)
Add path type
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/default.nix b/default.nix
index 17564b61b91e..9cd09e644028 100644
--- a/default.nix
+++ b/default.nix
@@ -97,6 +97,7 @@ in lib.fix (self: {
   bool     = typedef "bool" isBool;
   float    = typedef "float" isFloat;
   string   = typedef "string" isString;
+  path     = typedef "path" (x: typeOf x == "path");
   drv      = typedef "derivation" (x: isAttrs x && x ? "type" && x.type == "derivation");
   function = typedef "function" (x: isFunction x || (isAttrs x && x ? "__functor"
                                                  && isFunction x.__functor));