mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
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:
@@ -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/"
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user