Support flake inputs with type path #6

Merged
cole-h merged 1 commit from path-type into master 2020-09-03 09:01:31 +00:00

View file

@ -36,6 +36,10 @@ let
lastModifiedDate = formatSecondsSinceEpoch info.lastModified;
narHash = info.narHash;
}
else if info.type == "path" then
{ outPath = builtins.path { path = info.path; };
narHash = info.narHash;
}
else
# FIXME: add Mercurial, tarball inputs.
throw "flake input has unsupported input type '${info.type}'";