4 ms·
I've not tried Nix but this seems like a huge oversight if there is no local cache? Not everyone is blessed with unlimited gigabit fiber. Edit: Seems like I w
by TheChaplain 9y ago
I've not tried Nix but this seems like a huge oversight if there is no local cache?
Not everyone is blessed with unlimited gigabit fiber.
Edit: Seems like I was wrong, and I'm happy about it. :)
- manveru 9y agoGenerally everything is cached that you build/download. But only on the machine you do it on. That's why you usually want a collective cache inside your org additionally, because not all machines will have everything yet.
- jbboehr 9y agoIf you use a content-addressable scheme (fetchurl with sha256, for example), it will retain the source archives until you run garbage collect. If you use builtins.fetchTarball, I don't think this is the case. Since this all uses CAS, you can use the nix prefetch scripts to import an arbitrary file:// or other URI into the nix store.
- manveru 9y agofetchTarball now also supports an optional sha256 argument. It'll then be used indefinitely without checking for changes after the TTL expires.