buildDhallUrl: Respect proxy environment variables
`buildDhallUrl` is a fixed output derivation, which means that we can (and should) inherit impure proxy-related environment variables for fetching URLs. The motivation for this change is: https://discourse.dhall-lang.org/t/cant-build-a-nixified-dhall-package-in-a-sandbox-depending-on-the-environment/ … where a `buildDhallUrl` derivation was failing in a restricted networking environment due to not inheriting proxy-related settings.
This commit is contained in:
parent
a5051e29e2
commit
cb058dc7ea
1 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,8 @@ let
|
||||||
sourceFile = "source.dhall";
|
sourceFile = "source.dhall";
|
||||||
|
|
||||||
in
|
in
|
||||||
runCommand name { } (''
|
runCommand name { impureEnvVars = lib.fetchers.proxyImpureEnvVars; }
|
||||||
|
(''
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
mkdir -p ${cacheDhall} $out/${cacheDhall}
|
mkdir -p ${cacheDhall} $out/${cacheDhall}
|
||||||
|
|
Loading…
Reference in a new issue