elixir: remove hardcoded certificate path for curl

The hardcoded CURL_CA_BUNDLE path does not exist on MacOS, which causes
all curl calls (e.g. in build scripts) to fail.  This commit removes
that environment variable, causing curl fall back to NIX_SSL_CERT_FILE
instead.
This commit is contained in:
Day Fisher 2021-02-09 11:53:55 -07:00
parent 2ed8597999
commit 50f5661c5f

View File

@ -46,8 +46,7 @@ in
b=$(basename $f)
if [ "$b" = mix ]; then continue; fi
wrapProgram $f \
--prefix PATH ":" "${lib.makeBinPath [ erlang coreutils curl bash ]}" \
--set CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt
--prefix PATH ":" "${lib.makeBinPath [ erlang coreutils curl bash ]}"
done
substituteInPlace $out/bin/mix \