base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / se / secp256k1 / package.nix
blobe7710b7d151eb297150a2be234e1f78e92c48cda
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , autoreconfHook
5 }:
7 stdenv.mkDerivation rec {
8   pname = "secp256k1";
10   version = "0.5.1";
12   src = fetchFromGitHub {
13     owner = "bitcoin-core";
14     repo = "secp256k1";
15     rev = "refs/tags/v${version}";
16     sha256 = "sha256-IYvvBob8e82EiPLX9yA8fd+KWrMri1rI5csp81rAdrg=";
17   };
19   nativeBuildInputs = [ autoreconfHook ];
21   configureFlags = [
22     "--enable-benchmark=no"
23     "--enable-module-recovery"
24   ];
26   doCheck = true;
28   meta = with lib; {
29     description = "Optimized C library for EC operations on curve secp256k1";
30     longDescription = ''
31       Optimized C library for EC operations on curve secp256k1. Part of
32       Bitcoin Core. This library is a work in progress and is being used
33       to research best practices. Use at your own risk.
34     '';
35     homepage = "https://github.com/bitcoin-core/secp256k1";
36     license = with licenses; [ mit ];
37     maintainers = [ ];
38     platforms = with platforms; all;
39   };