guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 522b24adaa84b35a152f72ede1771ea86a991cb7
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Tue Aug 19 21:18:13 2025 +0100

    gnu: Add go-github-com-lestrrat-go-jwx-v2.
    
    * gnu/packages/golang-web.scm (go-github-com-lestrrat-go-jwx-v2): New 
variable.
    
    Change-Id: If618e8adc69d07a8d9e159bb1f52a78db784c820
---
 gnu/packages/golang-web.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 71982d460b..3476b06461 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -5926,6 +5926,51 @@ Javascript Object Signing and Encryption/JOSE} 
(JWA/JWE/JWK/JWS/JWT, otherwise
 known as JOSE) technologies.")
     (license license:expat)))
 
+(define-public go-github-com-lestrrat-go-jwx-v2
+  (package
+    (inherit go-github-com-lestrrat-go-jwx)
+    (name "go-github-com-lestrrat-go-jwx-v2")
+    (version "2.1.6")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/lestrrat-go/jwx";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1qvi2z45pc2y97paw55vyb5q2ngrwczvxlkp0ccgxvpd73fbwmx9"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            ;; Submodules with their own go.mod files and packaged separately:
+            ;;
+            ;; - github.com/lestrrat-go/jwx/cmd/jwx
+            ;; - github.com/lestrrat-go/jwx/tools/cmd/genjwa
+            ;; - github.com/lestrrat-go/jwx/tools/cmd/genjwe
+            ;; - github.com/lestrrat-go/jwx/tools/cmd/genjwk
+            ;; - github.com/lestrrat-go/jwx/tools/cmd/genjws
+            ;; - github.com/lestrrat-go/jwx/tools/cmd/genjwt
+            ;; - github.com/lestrrat-go/jwx/tools/cmd/genoptions
+            ;; - github.com/lestrrat-go/jwx/tools/cmd/genreadfile
+            (for-each delete-file-recursively
+                      (list "cmd/jwx"
+                            "tools/cmd"))))))
+    (build-system go-build-system)
+    (arguments
+     (substitute-keyword-arguments
+         (package-arguments go-github-com-lestrrat-go-jwx)
+       ((#:import-path _) "github.com/lestrrat-go/jwx/v2")))
+    (propagated-inputs
+     (list go-github-com-decred-dcrd-dcrec-secp256k1-v4
+           go-github-com-goccy-go-json
+           go-github-com-lestrrat-go-blackmagic
+           go-github-com-lestrrat-go-httprc
+           go-github-com-lestrrat-go-iter
+           go-github-com-lestrrat-go-option
+           go-github-com-segmentio-asm
+           go-golang-org-x-crypto))))
+
 (define-public go-github-com-lestrrat-go-jwx-v3
   (package
     (inherit go-github-com-lestrrat-go-jwx)

Reply via email to