You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main thing this would require is to be able to do all the fetching in a Nix-friendly way, which would require #45 and also some cleverness in working out what foliage needs, e.g. we might need something like:
We need to figure out how to tell foliage where the fetched inputs are.
Yeah, this is a bit annoying. I think it would be fine to have the answer be "pre-populate the cache" or something. It's some Nix code that we have to write, mostly.
(Amusingly, this is actually a perfect case for recursive Nix (we replace curl with a script that calls fetchurl with the provided hash).)
Maybe we should integrate this into the metadata file and offer a way to produce it separately?
Not sure what "this" is? The "prefetched source location"? I do think we might want something like that, although I think we need a top-level metadata file really for some repository-level options. That might be useful anyway for things like "default value of signing/writing metadata" etc.
michaelpj
changed the title
Make foliage repositories buildable Nix
Make foliage repositories buildable in Nix
Apr 13, 2023
The main thing this would require is to be able to do all the fetching in a Nix-friendly way, which would require #45 and also some cleverness in working out what foliage needs, e.g. we might need something like:
Then we could use IFD to make a derivation that prefetches everything into a directory, or use the intercepting-webserver trick.
The text was updated successfully, but these errors were encountered: