From 50f5661c5fe87e642f6746d3d2553e8b6a50df8b Mon Sep 17 00:00:00 2001 From: Day Fisher Date: Tue, 9 Feb 2021 11:53:55 -0700 Subject: [PATCH] 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. --- pkgs/development/interpreters/elixir/generic-builder.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/elixir/generic-builder.nix b/pkgs/development/interpreters/elixir/generic-builder.nix index 85e5fdf733c1..aaf368017ffb 100644 --- a/pkgs/development/interpreters/elixir/generic-builder.nix +++ b/pkgs/development/interpreters/elixir/generic-builder.nix @@ -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 \