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:
parent
50ae09a1a9
commit
0c00e5ee16
1 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue