Merge pull request #7 from zanculmarktum/master

Support flake inputs with type tarball
This commit is contained in:
Eelco Dolstra 2020-09-15 10:49:11 +02:00 committed by GitHub
commit 535e7c0116
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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