From 1bb9da089586cec646925d226a198757af1e0b71 Mon Sep 17 00:00:00 2001 From: Michael Ford Date: Wed, 21 Aug 2024 10:58:13 +0100 Subject: [PATCH] gnu: libsecp256k1: Update to 0.5.1. * gnu/packages/crypto.scm (libsecp256k1): Update to 0.5.1. [source]: Add snippet to remove pre-generated files. [arguments]: Remove --enable-module-ecdh and --enable-module-schnorrsig from configure-flags as they are enabled by default. Change-Id: I418ee47c1761ddae9cf4684b4c0ab49768b3f523 Co-authored-by: Jean-Pierre De Jesus DIAZ Signed-off-by: Guillaume Le Vaillant --- gnu/packages/crypto.scm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index b00dc8aa4c..ef745c7e5a 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -1078,7 +1078,7 @@ (define-public enchive (define-public libsecp256k1 (package (name "libsecp256k1") - (version "0.3.2") + (version "0.5.1") (source (origin (method git-fetch) (uri (git-reference @@ -1087,13 +1087,17 @@ (define-public libsecp256k1 (file-name (git-file-name name version)) (sha256 (base32 - "12wksk7bi3yfzmk1zwh5b6846zcaycqz1w4w4p23apjc8da4jwpn")))) + "1f3nq1dg6afbwp45m2rbndd8mpvx7hhggmzji22csyzwhq3fz2r1")) + (modules '((guix build utils))) + (snippet + ;; These files are pre-generated, the build system is able to + ;; re-generate those. + #~(for-each delete-file '("src/precomputed_ecmult.c" + "src/precomputed_ecmult_gen.c"))))) (build-system gnu-build-system) (arguments '(#:configure-flags '("--enable-module-recovery" "--enable-experimental" - "--enable-module-ecdh" - "--enable-module-schnorrsig" "--enable-shared" "--disable-static" "--disable-benchmark")))