diff options
author | Jonas Nick <jonasd.nick@gmail.com> | 2023-01-03 11:16:51 +0000 |
---|---|---|
committer | Jonas Nick <jonasd.nick@gmail.com> | 2023-01-03 13:03:12 +0000 |
commit | 12cfea32f825c89200d279efae235d93b7be7ad7 (patch) | |
tree | 1914c25193e1687e2d3ca66922f7bbaea409550d /pkgs/tools/security/secp256k1 | |
parent | 7634c3250b6870e76f2e611cb95b72392add9aef (diff) |
secp256k1: unstable-2022-02-06 -> 0.2.0
Also, - keep exhaustive tests because they test something different than the regular tests and finish faster than the regular tests - remove unnecessary options. None of the modules are experimental (anymore) and the modules are enabled by default except recovery. This is demonstrated by the output of the configurePhase with this commit: ``` Build Options: with tests = yes module ecdh = yes module recovery = yes module extrakeys = yes module schnorrsig = yes ```
Diffstat (limited to 'pkgs/tools/security/secp256k1')
-rw-r--r-- | pkgs/tools/security/secp256k1/default.nix | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/pkgs/tools/security/secp256k1/default.nix b/pkgs/tools/security/secp256k1/default.nix index bae83462872b7..fa07080d2dfa6 100644 --- a/pkgs/tools/security/secp256k1/default.nix +++ b/pkgs/tools/security/secp256k1/default.nix @@ -4,34 +4,27 @@ , autoreconfHook }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "secp256k1"; - version = "unstable-2022-02-06"; + version = "0.2.0"; src = fetchFromGitHub { owner = "bitcoin-core"; repo = "secp256k1"; - rev = "5dcc6f8dbdb1850570919fc9942d22f728dbc0af"; - sha256 = "x9qG2S6tBSRseWaFIN9N2fRpY1vkv8idT3d3rfJnmaU="; + rev = "refs/tags/v${version}"; + sha256 = "sha256-wYJIMCoo6ryeQN4ZnvEkJ5/332+AkaOwgplDuQQC5MU="; }; nativeBuildInputs = [ autoreconfHook ]; configureFlags = [ "--enable-benchmark=no" - "--enable-exhaustive-tests=no" - "--enable-experimental" - "--enable-module-ecdh" "--enable-module-recovery" - "--enable-module-schnorrsig" - "--enable-tests=yes" ]; doCheck = true; - checkPhase = "./tests"; - meta = with lib; { description = "Optimized C library for EC operations on curve secp256k1"; longDescription = '' |