Merge pull request #6 from cole-h/path-type

Support flake inputs with type path
This commit is contained in:
Eelco Dolstra 2020-09-03 11:01:30 +02:00 committed by GitHub
commit cecfd08d13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}'";