[Nix-dev] Re: Re: nix-prefetch-url curl args

Marc Weber marco-oweber at gmx.de
Thu May 27 18:53:43 CEST 2010


> 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



More information about the nix-dev mailing list