~ruther/guix-local

1bb9da089586cec646925d226a198757af1e0b71 — Michael Ford 1 year, 11 months ago 10d04c8
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 <jean@foundation.xyz>
Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
1 files changed, 8 insertions(+), 4 deletions(-)

M gnu/packages/crypto.scm
M gnu/packages/crypto.scm => gnu/packages/crypto.scm +8 -4
@@ 1078,7 1078,7 @@ trivial to build for local use.  Portability is emphasized over performance.")
(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 @@ trivial to build for local use.  Portability is emphasized over performance.")
              (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")))