Set SSL_CERT_FILE by setup hook rather than explicit

This commit is contained in:
adisbladis 2022-08-24 09:32:25 +08:00
parent b40e660f51
commit 564d1edc26

View file

@ -55,11 +55,14 @@ let
name = "${baseNameOf goPackagePath}_${version}";
builder = ./fetch.sh;
inherit goPackagePath version;
nativeBuildInputs = [ go jq ];
nativeBuildInputs = [
go
jq
cacert
];
outputHashMode = "recursive";
outputHashAlgo = null;
outputHash = hash;
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
impureEnvVars = fetchers.proxyImpureEnvVars ++ [ "GOPROXY" ];
};