beamPackages.hex: replace bundled CA certs with cacert

Assisted-By: Claude Opus 5.5 low in claude-code/2.1.303
This commit is contained in:
Adam C. Stephens
2026-10-20 22:38:04 -04:00
parent fdb7d51bd1
commit 6f736f3082

View File

@@ -1,6 +1,7 @@
{
lib,
stdenv,
cacert,
fetchFromGitHub,
writeText,
elixir,
@@ -27,6 +28,10 @@ let
sha256 = "sha256-lOoD6mzctGk9xHNJiribDMVWQ9xrr2N5eluJalirESk=";
};
postPatch = ''
cp ${cacert}/etc/ssl/certs/ca-bundle.crt lib/hex/http/ca-bundle.crt
'';
setupHook = writeText "setupHook.sh" ''
addToSearchPath ERL_LIBS "$1/lib/erlang/lib/"
'';