Subject: [PATCH v6] gnu: nettle: update to 3.10.1.

From: Andy Tai <[email-masked]>
Date: Thu, 2 Jan 2025 23:50:43 -0800

* gnu/packages/nettle.scm (nettle-3-current): New variable.
  (nettle)[replacement]: Add nettle-3-current as replacement.

Change-Id: Ia57c1d0ccc2a3dfe43766af1a5e7b23e28b4c664
---
 gnu/packages/nettle.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/nettle.scm b/gnu/packages/nettle.scm
index 15533ca629..bca3aa761c 100644
--- a/gnu/packages/nettle.scm
+++ b/gnu/packages/nettle.scm
@@ -84,6 +84,7 @@ (define-public nettle
   ;; cannot use it yet.  So keep it separate.
   (package (inherit nettle-2)
     (version "3.9.1")
+    (replacement nettle-3-current)
     (source (origin
               (method url-fetch)
               (uri (string-append "mirror://gnu/nettle/nettle-"
@@ -97,3 +98,18 @@ (define-public nettle
         ;; Build "fat" binaries where the right implementation is chosen
         ;; at run time based on CPU features (starting from 3.1.)
         `(cons "--enable-fat" ,flags))))))
+
+
+(define-public nettle-3-current
+    ; upate to current version of Nettle 3; this uses GNU Guix's crafting mechanism
+    ; to avoid massive rebuild
+  (package (inherit nettle)
+    (version "3.10.1")
+    (replacement nettle-3-current)
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnu/nettle/nettle-"
+                                  version ".tar.gz"))
+              (sha256
+               (base32
+                "0cli5lkr7h9vxrz3j9kylnsdbw2ag6x8bpgivj06xsndq1zxvz5h"))))))

base-commit: a707ebe5d3875a49523bc17de2d36af6f1c18f7e
-- 
2.34.1