summary refs log tree commit diff
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2021-09-20 10:26:30 +0000
committerMathieu Othacehe <othacehe@gnu.org>2021-09-21 07:41:07 +0000
commitf87b9872484f58728000e651e29243b35c70c8ba (patch)
tree4edbeaca616dee683d2cac5f27e812ab57e2faf8
parentaacaa222d1646a99343d8f59b2e87f34e27b75ae (diff)
downloadguix-f87b9872484f58728000e651e29243b35c70c8ba.tar.gz
gnu: certdata2pem: Produce pem files.
Create files with pem extension instead of crt.

* gnu/packages/certs.scm (certdata2pem)[arguments]<#:phases>{fix-extension}:
New phase.
-rw-r--r--gnu/packages/certs.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/certs.scm b/gnu/packages/certs.scm
index 37e3fa6786..c9d8e7b76c 100644
--- a/gnu/packages/certs.scm
+++ b/gnu/packages/certs.scm
@@ -104,6 +104,11 @@ port forwarding to your local machine.")
       (arguments
        `(#:phases (modify-phases %standard-phases
                     (delete 'configure)
+                    (add-before 'build 'fix-extension
+                      (lambda _
+                        (substitute* "certdata2pem.c"
+                          (("\\.crt")
+                           ".pem"))))
                     (replace 'build
                       (lambda _
                         (invoke ,(cc-for-target) "certdata2pem.c"