> A somewhat more generic solution would be to have an environment variable
> $NIX_CURL_FLAGS used by both fetchurl and nix-prefetch-url.  (`fetchurl' can
> receive this variable by adding it to impureEnvVars.)  Then we can accomodate
> everybody's flaky Internet connections :-)
+1

Maybe even call it NIX_DOWNLOAD_HOOK :-)

Should this env var be set in NIXOS configuration file and be passed to
booth: the nix-daemon and skeleton files which set env vars for all
users (?)

A hook would be nice because you can continue downloads easily then.

Marc Weber
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to