File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ add_config() {
19
19
}
20
20
# Set jobs to number of cores
21
21
add_config " max-jobs = auto"
22
+ if [[ $OSTYPE =~ darwin ]]; then
23
+ add_config " ssl-cert-file = /etc/ssl/cert.pem"
24
+ fi
22
25
# Allow binary caches for user
23
26
add_config " trusted-users = root ${USER:- } "
24
27
# Add github access token
@@ -66,7 +69,7 @@ echo "installer options: ${installer_options[*]}"
66
69
67
70
# There is --retry-on-errors, but only newer curl versions support that
68
71
curl_retries=5
69
- while ! curl -sS -o " $workdir /install" -v --fail -L " ${INPUT_INSTALL_URL:- https:// releases.nixos.org/ nix/ nix-2.15 .1/ install} "
72
+ while ! curl -sS -o " $workdir /install" -v --fail -L " ${INPUT_INSTALL_URL:- https:// releases.nixos.org/ nix/ nix-2.16 .1/ install} "
70
73
do
71
74
sleep 1
72
75
(( curl_retries-- ))
78
81
79
82
sh " $workdir /install" " ${installer_options[@]} "
80
83
81
- if [[ $OSTYPE =~ darwin ]]; then
82
- # macOS needs certificates hints
83
- cert_file=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
84
- echo " NIX_SSL_CERT_FILE=$cert_file " >> " $GITHUB_ENV "
85
- export NIX_SSL_CERT_FILE=$cert_file
86
- sudo launchctl setenv NIX_SSL_CERT_FILE " $cert_file "
87
- fi
88
-
89
84
# Set paths
90
85
echo " /nix/var/nix/profiles/default/bin" >> " $GITHUB_PATH "
91
86
# new path for nix 2.14
You can’t perform that action at this time.
0 commit comments