gnu: acme-client: Provide path to certificates.

* gnu/packages/tls.scm (acme-client)[arguments]: Add 'patch-paths' phase.
This commit is contained in:
Leo Famulari 2016-12-12 21:04:43 -05:00
parent 76b3fbbce6
commit 7c1a7bf484
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08

View 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)))