buildDhallUrl: fix impure proxy variable passing (#178544)
PR #177891 tried fixing a problem with `buildDhallUrl` in environments where proxy variables are necessary for internet access to work. The `impureEnvVars` should be set in `downloadEncodedFile` instead of the final `runCommand`, as the former is an FOD, the latter isn't.
This commit is contained in:
parent
73258f3468
commit
39e6ebdfe1
1 changed files with 2 additions and 1 deletions
|
@ -59,6 +59,7 @@ let
|
|||
outputHash = hash;
|
||||
name = baseNameOf url;
|
||||
nativeBuildInputs = [ cacert ];
|
||||
impureEnvVars = lib.fetchers.proxyImpureEnvVars;
|
||||
}
|
||||
''
|
||||
echo "${url} ${dhallHash}" > in-dhall-file
|
||||
|
@ -76,7 +77,7 @@ let
|
|||
sourceFile = "source.dhall";
|
||||
|
||||
in
|
||||
runCommand name { impureEnvVars = lib.fetchers.proxyImpureEnvVars; }
|
||||
runCommand name { }
|
||||
(''
|
||||
set -eu
|
||||
|
||||
|
|
Loading…
Reference in a new issue