summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorJonas Nick <jonasd.nick@gmail.com>2023-01-03 11:16:51 +0000
committerJonas Nick <jonasd.nick@gmail.com>2023-01-03 13:03:12 +0000
commit12cfea32f825c89200d279efae235d93b7be7ad7 (patch)
tree1914c25193e1687e2d3ca66922f7bbaea409550d /pkgs/tools
parent7634c3250b6870e76f2e611cb95b72392add9aef (diff)
downloadnixpkgs-12cfea32f825c89200d279efae235d93b7be7ad7.tar
nixpkgs-12cfea32f825c89200d279efae235d93b7be7ad7.tar.gz
nixpkgs-12cfea32f825c89200d279efae235d93b7be7ad7.tar.bz2
nixpkgs-12cfea32f825c89200d279efae235d93b7be7ad7.tar.lz
nixpkgs-12cfea32f825c89200d279efae235d93b7be7ad7.tar.xz
nixpkgs-12cfea32f825c89200d279efae235d93b7be7ad7.tar.zst
nixpkgs-12cfea32f825c89200d279efae235d93b7be7ad7.zip
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')
-rw-r--r--pkgs/tools/security/secp256k1/default.nix15
1 files changed, 4 insertions, 11 deletions
diff --git a/pkgs/tools/security/secp256k1/default.nix b/pkgs/tools/security/secp256k1/default.nix
index bae83462872..fa07080d2df 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 = ''