Support flake inputs with type tarball

This commit is contained in:
Azure Zanculmarktum 2020-09-07 19:45:53 +07:00
parent cecfd08d13
commit e363cffac2

View file

@ -40,6 +40,10 @@ let
{ outPath = builtins.path { path = info.path; }; { outPath = builtins.path { path = info.path; };
narHash = info.narHash; narHash = info.narHash;
} }
else if info.type == "tarball" then
{ outPath = fetchTarball info.url;
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}'";