gnu: acme-client: Provide path to certificates.
authorLeo Famulari <leo@famulari.name>
Tue, 13 Dec 2016 02:04:43 +0000 (21:04 -0500)
committerLeo Famulari <leo@famulari.name>
Sat, 17 Dec 2016 05:09:10 +0000 (00:09 -0500)
* gnu/packages/tls.scm (acme-client)[arguments]: Add 'patch-paths' phase.

gnu/packages/tls.scm

index f5ffe42..e577421 100644 (file)
@@ -717,6 +717,13 @@ number generator")
              (string-append "PREFIX=" (assoc-ref %outputs "out")))
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'patch-paths
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((pem (string-append (assoc-ref inputs "libressl")
+                                       "/etc/ssl/cert.pem")))
+               (substitute* "http.c"
+                 (("/etc/ssl/cert.pem") pem))
+               #t)))
          (delete 'configure)))) ; no './configure' script
     (native-inputs
      `(("pkg-config" ,pkg-config)))