From 6f6f2f2050ea1cbe22899053caa7f22077127d4d Mon Sep 17 00:00:00 2001 From: Artur Cygan Date: Wed, 19 Aug 2020 14:42:25 +0200 Subject: [PATCH] secp256k1: 2017-12-18 -> 2020-08-16 --- pkgs/tools/security/secp256k1/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/security/secp256k1/default.nix b/pkgs/tools/security/secp256k1/default.nix index b5e92a354541..d3b43d6adf69 100644 --- a/pkgs/tools/security/secp256k1/default.nix +++ b/pkgs/tools/security/secp256k1/default.nix @@ -20,13 +20,13 @@ stdenv.mkDerivation { # I can't find any version numbers, so we're just using the date of the # last commit. - version = "2017-12-18"; + version = "2020-08-16"; src = fetchFromGitHub { owner = "bitcoin-core"; repo = "secp256k1"; - rev = "f54c6c5083307b18224c953cf5870ea7ffce070b"; - sha256 = "0bxqmimm627g9klalg1vdbspmn52588v4a6cli3p8bn84ibsnzbm"; + rev = "670cdd3f8be25f81472b2d16dcd228b0d24a5c45"; + sha256 = "0ak2hrr0wznl5d9s905qwn5yds7k22i28d2jp957l4a8yf8cqv3s"; }; buildInputs = optionals enableJNI [ jdk ]; @@ -34,11 +34,14 @@ stdenv.mkDerivation { nativeBuildInputs = [ autoreconfHook ]; configureFlags = - [ "--enable-benchmark=no" "--enable-tests=no" "--enable-exhaustive-tests=no" ] ++ + [ "--enable-benchmark=no" "--enable-tests=yes" "--enable-exhaustive-tests=no" ] ++ optionals enableECDH [ "--enable-module-ecdh" "--enable-experimental" ] ++ optionals enableRecovery [ "--enable-module-recovery" ] ++ optionals enableJNI [ "--enable-jni" ]; + doCheck = true; + checkPhase = "./tests"; + meta = with stdenv.lib; { description = "Optimized C library for EC operations on curve secp256k1"; longDescription = ''