| 14 Jan 2026 |
maralorn | Is it bad style to use fetchGit to load sources which are then used during eval? Does that count as IFD? | 19:25:29 |
rosssmyth | fetchGit runs during eval, so no, it doesn't count as IFD. | 19:31:06 |
maralorn | I think I am misunderstanding something. | 19:32:39 |
maralorn | Why isn’t that used all the time e.g. to load large .json files with pins into nixpkgs without checking them in the repo? | 19:33:35 |
maralorn | Is it not IFD but still forbidden in nixpkgs? | 19:33:50 |
K900 | Forbidden on Hydra yes | 19:36:38 |
K900 | Also generally evaluating nixpkgs offline is something people rely on | 19:38:11 |
Acid Bong | not ifd, cuz builtin fetchers' outputs aren't derivations (this is why import (fetchTarball ...) is a valid Nix code and why remote Nix code (Npins, Flakes, etc) works in general) | 19:46:43 |
Acid Bong | where are you suggesting to store them and keep them pure? | 19:47:51 |
maralorn | Any github repo? Well it would be reasonably pure when you pin the commit. But of course when you have a cache miss you need network, which I understand is not a good idea for nixpkgs. | 19:49:21 |
teo (they/he) | Eval time fetchers also tend to be quite bad for eval performance | 19:57:20 |
maralorn | Even when they are cached? | 20:06:53 |
teo (they/he) | The caching is a bit annoying cause it gets cached in the evaluating users xdg cache and it has a ttl | 20:35:56 |