Subject: [PATCH 1/2] gnu: Add libjwt.

From: Arun Isaac <[email-masked]>
Date: Fri, 23 Aug 2024 00:36:30 +0100

* gnu/packages/web.scm (libjwt): New variable.

Change-Id: Ied516fb41a90de316588622b999b27f0f7ee8de3
---
 gnu/packages/web.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 34922911a7..dd1b9438a2 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -15,7 +15,7 @@
 ;;; Copyright © 2016 Ben Woodcroft <[email-masked]>
 ;;; Copyright © 2016, 2023 Clément Lassieur <[email-masked]>
 ;;; Copyright © 2016, 2017 Nikita <[email-masked]>
-;;; Copyright © 2016–2023 Arun Isaac <[email-masked]>
+;;; Copyright © 2016–2024 Arun Isaac <[email-masked]>
 ;;; Copyright © 2016–2022 Tobias Geerinckx-Rice <[email-masked]>
 ;;; Copyright © 2016 Bake Timmons <[email-masked]>
 ;;; Copyright © 2017 Thomas Danckaert <[email-masked]>
@@ -1604,6 +1604,30 @@ (define-public rapidjson
 style API.")
       (license license:expat))))
 
+(define-public libjwt
+  (package
+    (name "libjwt")
+    (version "1.17.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/benmcollins/libjwt/releases/download/v"
+                           version "/libjwt-"
+                           version ".tar.bz2"))
+       (sha256
+        (base32
+         "1bpfaa0y8bccz5hr677lkrprs07akx02k0qbf82z2c8syr24a77i"))))
+    (build-system gnu-build-system)
+    (inputs
+     (list jansson openssl))
+    (native-inputs
+     (list check pkg-config))
+    (home-page "https://github.com/benmcollins/libjwt")
+    (synopsis "C @acronym{JWT, JSON Web Token} library")
+    (description "@code{libjwt} is a @acronym{JWT, JSON Web Token} library for
+C.")
+    (license license:mpl2.0)))
+
 (define-public yajl
   (package
     (name "yajl")
-- 
2.45.2