diff options
author | Arun Isaac | 2023-07-05 22:36:23 +0100 |
---|---|---|
committer | Arun Isaac | 2023-07-05 22:39:30 +0100 |
commit | 36e3cae37bf0e1ce095ffc09cf0b19819db5ab1c (patch) | |
tree | 379c8336d945d0fc34854fce35513c2058227711 | |
parent | 8c0f17a5087f744ae645376360a11e68913bfab5 (diff) | |
download | guix-forge-36e3cae37bf0e1ce095ffc09cf0b19819db5ab1c.tar.gz guix-forge-36e3cae37bf0e1ce095ffc09cf0b19819db5ab1c.tar.lz guix-forge-36e3cae37bf0e1ce095ffc09cf0b19819db5ab1c.zip |
forge: Set TLS certificate paths in guix-channel-job-gexp.
* guix/forge/forge.scm: Import (guix profiles).
(guix-channel-job-gexp): Set TLS certificate paths.
-rw-r--r-- | guix/forge/forge.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/guix/forge/forge.scm b/guix/forge/forge.scm index bfb2169..68abe2f 100644 --- a/guix/forge/forge.scm +++ b/guix/forge/forge.scm @@ -32,6 +32,7 @@ #:use-module (guix channels) #:use-module (guix modules) #:use-module (guix packages) + #:use-module (guix profiles) #:use-module (guix records) #:use-module (guix store) #:use-module ((forge guile-git) #:select (guile-git)) @@ -285,6 +286,13 @@ daemon endpoint." (define (code->channel code) (eval code (current-module))) + (setenv "SSL_CERT_DIR" + #$(file-append nss-certs "/etc/ssl/certs")) + (setenv "SSL_CERT_FILE" + #$(file-append (profile + (content (packages->manifest (list git-minimal nss-certs)))) + "/etc/ssl/certs/ca-certificates.crt")) + (parameterize ((%daemon-socket-uri #$guix-daemon-uri)) (list-transduce ;; Build derivations and report success or failure. |