guix_mirror_bot pushed a commit to branch master
in repository guix.
commit ddfaa6d8a5fc05e23cada920e10abf4b9b6f9a82
Author: luca <[email protected]>
AuthorDate: Wed Oct 29 22:52:42 2025 +0100
gnu: Add mkcert.
* gnu/packages/certs.scm (mkcert): New variable.
Change-Id: I6be534e484622f6844cd8cf259666ed67b577d44
Signed-off-by: Andreas Enge <[email protected]>
---
gnu/packages/certs.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/certs.scm b/gnu/packages/certs.scm
index 8f7bbb5d9c..2b06f1c5fd 100644
--- a/gnu/packages/certs.scm
+++ b/gnu/packages/certs.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2017 Leo Famulari <[email protected]>
;;; Copyright © 2021 Maxim Cournoyer <[email protected]>
;;; Copyright © 2021 Raghav Gururajan <[email protected]>
+;;; Copyright © 2025 Luca Kredel <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -29,11 +30,14 @@
#:use-module (guix build-system copy)
#:use-module (guix build-system gnu)
#:use-module (guix build-system trivial)
+ #:use-module (guix build-system go)
#:use-module (gnu packages)
#:use-module (gnu packages nss)
#:use-module (gnu packages curl)
#:use-module (gnu packages python)
#:use-module (gnu packages perl)
+ #:use-module (gnu packages golang-crypto)
+ #:use-module (gnu packages golang-build)
#:use-module (gnu packages tls))
(define-public certdata2pem
@@ -223,3 +227,33 @@ port forwarding to your local machine.")
Let's Encrypt root and intermediate certificates. It is intended to be used
within Guix.")
(license license:public-domain)))
+
+(define-public mkcert
+ (package
+ (name "mkcert")
+ (version "1.4.4")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/FiloSottile/mkcert")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ms9mjspiwlsgsnir0ccj3w8vhvrphf5i6k9q3hrz47y2a6igh0l"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "filippo.io/mkcert"
+ #:build-flags
+ #~(list (string-append "-ldflags=-X main.Version="
+ #$version))))
+ (native-inputs (list go-golang-org-x-net
+ go-software-sslmate-com-src-go-pkcs12))
+ (synopsis "Zero-config tool to make locally trusted development
+ certificates")
+ (description
+ "mkcert is a simple tool for making locally-trusted development
+ certificates. It requires no configuration.")
+ (home-page "https://github.com/FiloSottile/mkcert")
+ (license license:bsd-3)))