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:
		
							parent
							
								
									aacaa222d1
								
							
						
					
					
						commit
						f87b987248
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -104,6 +104,11 @@ port forwarding to your local machine.")
 | 
				
			||||||
      (arguments
 | 
					      (arguments
 | 
				
			||||||
       `(#:phases (modify-phases %standard-phases
 | 
					       `(#:phases (modify-phases %standard-phases
 | 
				
			||||||
                    (delete 'configure)
 | 
					                    (delete 'configure)
 | 
				
			||||||
 | 
					                    (add-before 'build 'fix-extension
 | 
				
			||||||
 | 
					                      (lambda _
 | 
				
			||||||
 | 
					                        (substitute* "certdata2pem.c"
 | 
				
			||||||
 | 
					                          (("\\.crt")
 | 
				
			||||||
 | 
					                           ".pem"))))
 | 
				
			||||||
                    (replace 'build
 | 
					                    (replace 'build
 | 
				
			||||||
                      (lambda _
 | 
					                      (lambda _
 | 
				
			||||||
                        (invoke ,(cc-for-target) "certdata2pem.c"
 | 
					                        (invoke ,(cc-for-target) "certdata2pem.c"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue