Hey all, i am working in an enterprise environment where there is an tls intercepting proxy between the nix build host and the internet. I wanted to build a rust package with “buildRustPackage”, however i cannot get it to run through the proxy. On the host i tried to set every Environment variable to the prepared cacert package instead of the default one:
however everything seems to be ignored by
buildRustPackage . Overriding
cacert or even
cargo via an overlay is not really an option for me as it would mean a mass rebuild.
Has anyone managed to work around this or found a good solution such as overriding the rust environment only?
I opened an issue almost 1.5 years ago:
According to the note in nixpkgs/cargo.nix at a0dbe47318bbab7559ffbfa7c4872a517833409f · NixOS/nixpkgs · GitHub nixpkgs sets CARGO_HTTP_CAINFO and SSL_CERT_FILE to cacert but there is no obvious way to override this behavior
Any help would be greatly appreciated!