turnon: 2.0.0 -> 2.3.1 (#370430)
[NixPkgs.git] / pkgs / by-name / se / secp256k1 / package.nix
blob5af8747119028f001ee3c9503bec518abb02242a
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   autoreconfHook,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "secp256k1";
11   version = "0.6.0";
13   src = fetchFromGitHub {
14     owner = "bitcoin-core";
15     repo = "secp256k1";
16     tag = "v${version}";
17     sha256 = "sha256-pCSNUSrPyN/lLYZm7zK/b9LICkThXOr6JAyFvHZSPW0=";
18   };
20   nativeBuildInputs = [ autoreconfHook ];
22   configureFlags = [
23     "--enable-benchmark=no"
24     "--enable-module-recovery"
25   ];
27   doCheck = true;
29   meta = with lib; {
30     description = "Optimized C library for EC operations on curve secp256k1";
31     longDescription = ''
32       Optimized C library for EC operations on curve secp256k1. Part of
33       Bitcoin Core. This library is a work in progress and is being used
34       to research best practices. Use at your own risk.
35     '';
36     homepage = "https://github.com/bitcoin-core/secp256k1";
37     license = with licenses; [ mit ];
38     maintainers = [ ];
39     platforms = with platforms; all;
40   };