beamPackages.mixRelease: replace certifi bundle with cacert

Assisted-By: Claude Opus 5.5 low in claude-code/2.1.303
(cherry picked from commit fdb7d51bd1)
This commit is contained in:
Adam C. Stephens
2026-10-20 22:34:32 -04:00
parent 265d74d787
commit 9b040d49cc

View File

@@ -167,9 +167,12 @@ stdenv.mkDerivation (
export MIX_DEPS_PATH="$TEMPDIR/deps"
cp --no-preserve=mode -R "${mixFodDeps}" "$MIX_DEPS_PATH"
if [ -f "$MIX_DEPS_PATH/castore/priv/cacerts.pem" ]; then
cp "${cacert}/etc/ssl/certs/ca-bundle.crt" "$MIX_DEPS_PATH/castore/priv/cacerts.pem"
fi
local dep
for dep in castore certifi; do
if [ -f "$MIX_DEPS_PATH/$dep/priv/cacerts.pem" ]; then
cp "${cacert}/etc/ssl/certs/ca-bundle.crt" "$MIX_DEPS_PATH/$dep/priv/cacerts.pem"
fi
done
''}
''
+ (attrs.postUnpack or "");