Add Nix certificate path to ssl_certs.nim (#25763)

This makes it easier to run Nix built containers for Nim programs since
by default Nim doesn't search environment variables for SSL certs so its
a little annoying having to move around files

-
10e7ad5bbc/pkgs/by-name/ca/cacert/package.nix (L85)
This commit is contained in:
Jake Leahy
2026-04-24 22:04:30 +10:00
committed by GitHub
parent 8b44b9d9ae
commit 148e82f418

View File

@@ -36,6 +36,8 @@ elif defined(linux):
# Android
"/data/data/com.termux/files/usr/etc/tls/cert.pem",
"/system/etc/security/cacerts",
# Nix
"/etc/ssl/certs/ca-bundle.crt"
]
elif defined(bsd):
const certificatePaths = [