gnu: certdata2pem: Produce pem files.

Create files with pem extension instead of crt.

* gnu/packages/certs.scm (certdata2pem)[arguments]<#:phases>{fix-extension}:
New phase.
This commit is contained in:
Mathieu Othacehe 2021-09-20 10:26:30 +00:00
parent aacaa222d1
commit f87b987248
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -104,6 +104,11 @@ (define certdata2pem
(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"