Commit 4aaa200
authored
Add cacert to wrapped-cabal runtimeInputs for SSL certificate support (#232)
curl requires CA certificates to validate HTTPS connections. In the
-env containers (rootless, no system CA store), OpenSSL falls back to
/no-cert-file.crt when cacert is not in the dependency closure. Adding
pkgs.cacert to runtimeInputs propagates it through nix-support/, and
its setup-hook sets SSL_CERT_FILE, NIX_SSL_CERT_FILE, and
SYSTEM_CERTIFICATE_PATH — enabling curl to verify HTTPS certificates
in the container environment.
Fixes: curl: (77) error adding trust anchors from file: /no-cert-file.crt1 parent 8cbcf3d commit 4aaa200
4 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments