aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2016-12-12 21:04:43 -0500
committerLeo Famulari <leo@famulari.name>2016-12-17 00:09:10 -0500
commit7c1a7bf484cb6078798e132f16d1600b9a36349f (patch)
treecd4dcffcf48adab499677d95b133e78c63fcb8d4 /gnu/packages
parent76b3fbbce65ff9b32da07062d9b03a4876c200a1 (diff)
downloadguix-7c1a7bf484cb6078798e132f16d1600b9a36349f.tar
guix-7c1a7bf484cb6078798e132f16d1600b9a36349f.tar.gz
gnu: acme-client: Provide path to certificates.
* gnu/packages/tls.scm (acme-client)[arguments]: Add 'patch-paths' phase.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/tls.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index f5ffe42b91..e577421fac 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -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)))