fix: Add git and SSL certificates for git dependencies

Add git and cacert to nativeBuildInputs and set SSL certificate
environment variables. This fixes the SSL certificate verification
error when fetching heroicons from GitHub.
This commit is contained in:
Graham McIntire 2026-02-07 12:52:31 -06:00
parent 50ae09a1a9
commit 0c00e5ee16
No known key found for this signature in database

View file

@ -4,6 +4,8 @@
towerops-nif,
net-snmp,
writeShellScriptBin,
git,
cacert,
}:
beamPackages.mixRelease {
@ -40,10 +42,20 @@ beamPackages.mixRelease {
# Environment variables for build
MIX_OS_DEPS_COMPILE_PARTITION_COUNT = "6";
# Need git and SSL certificates for fetching git dependencies
nativeBuildInputs = [
git
cacert
];
# Override Mix phases to handle vendored deps properly
configurePhase = ''
runHook preConfigure
# Set SSL certificate path for git operations
export SSL_CERT_FILE="${cacert}/etc/ssl/certs/ca-bundle.crt"
export GIT_SSL_CAINFO="${cacert}/etc/ssl/certs/ca-bundle.crt"
# Get all deps (including hex deps that vendored packages need)
mix deps.get --only prod