Support flake inputs with type path

This commit is contained in:
Cole Helbling 2020-09-02 14:24:53 -07:00
parent c5c3c5b56b
commit f10b647d90
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

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