NIX_CURL_FLAGS is not passed to the underlying fetchurl

$ NIX_CURL_FLAGS="-vvvvv" nix-store --realise /nix/store/q59m4ywswx92zg7lv8h6sjxvy49sfx2q-docker-client-7.0.0.pom.drv
this derivation will be built:
  /nix/store/q59m4ywswx92zg7lv8h6sjxvy49sfx2q-docker-client-7.0.0.pom.drv
building '/nix/store/q59m4ywswx92zg7lv8h6sjxvy49sfx2q-docker-client-7.0.0.pom.drv'...

trying https://repo.maven.apache.org/maven2/com/spotify/docker-client/7.0.0/docker-client-7.0.0.pom
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11360  100 11360    0     0  92347      0 --:--:-- --:--:-- --:--:-- 92357
error: hash mismatch in fixed-output derivation '/nix/store/q59m4ywswx92zg7lv8h6sjxvy49sfx2q-docker-client-7.0.0.pom.drv':
         specified: sha256-F/h/GgQqLr9TZPZ3pkgKHlKpbhKeALaoOua25cAEGZQ=
            got:    sha256-YygCVNUUTYvjMhroRsXoOs6tWS/g1jXjTO2dMnFFqaE=

Why curl is not giving its verbose output despite nixpkgs/default.nix at b6625b11a86adfb3f620400c4122d8bb48aeb628 · NixOS/nixpkgs · GitHub ?

1 Like

Eventually I found the solution: the envieronment variables are passed from nix-daemon, not nix-env