Hi!

Christopher Baines <[email protected]> skribis:

> I've had a look at the GUIX_DOWNLOAD_METHODS environment variable, which
> is looked at by the url-fetch procedure, but this seems to work by
> generating different derivations, rather than changing the behaviour of
> the derivation at build time.

Yes.  You can’t “change the behavior of derivations” at build time,
except by passing GUIX_DOWNLOAD_METHODS to guix-daemon itself, provided
GUIX_DOWNLOAD_METHODS is also in ‘impureEnvVars’ of said derivation, as
you wrote.

I agree this is inflexible but I couldn’t think of a better way.

Thoughts?

Ludo’.

Reply via email to