Support fetching file type flakes #44

Closed
matthewbauer wants to merge 5 commits from matthewbauer/support-fetching-file-type-flakes into master

5 commits

Author SHA1 Message Date
Matthew Bauer c1217c6a4e Add note 2022-08-29 13:39:54 -05:00
Matthew Bauer b1d2eff40a Discard context on fetchurl derivation
so that fetchurl outputs a real path instead of a source, and our
hashes match correctly between flake and non-flake.

also it looks like fetchTarball can support local files
2022-08-29 12:00:24 -05:00
Matthew Bauer 0b194c44aa Add hash to builtins.path calls 2022-08-26 15:06:04 -05:00
Matthew Bauer 6e1fbe397a Support local files too
Add support for local files in addition to http / https.
2022-08-26 15:03:10 -05:00
Matthew Bauer 5932243fcc Support fetching plain files
Add supports for new type = "file" locks added in
5b8c1deb18.

Unfortunately, the hash provided by the lock file is a recursive hash,
while fetchurl wants a flat hash. So we have to use a custom fetchurl
function using the builtin:fetchurl builder. Hopefully okay just to
add compat for this very useful lock type.
2022-08-26 14:42:35 -05:00