nixpkgs/pkgs/tools/security/secp256k1/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
}:
2019-08-13 17:52:01 -04:00
stdenv.mkDerivation {
pname = "secp256k1";
2016-06-04 13:55:15 -04:00
version = "unstable-2022-02-06";
2016-06-04 13:55:15 -04:00
src = fetchFromGitHub {
owner = "bitcoin-core";
repo = "secp256k1";
rev = "5dcc6f8dbdb1850570919fc9942d22f728dbc0af";
sha256 = "x9qG2S6tBSRseWaFIN9N2fRpY1vkv8idT3d3rfJnmaU=";
2016-06-04 13:55:15 -04:00
};
nativeBuildInputs = [ autoreconfHook ];
2016-06-04 13:55:15 -04:00
configureFlags = [
"--enable-benchmark=no"
"--enable-exhaustive-tests=no"
"--enable-experimental"
"--enable-module-ecdh"
"--enable-module-recovery"
"--enable-module-schnorrsig"
"--enable-tests=yes"
];
2016-06-04 13:55:15 -04:00
2020-08-19 08:42:25 -04:00
doCheck = true;
2020-08-19 08:42:25 -04:00
checkPhase = "./tests";
meta = with lib; {
2016-06-04 13:55:15 -04:00
description = "Optimized C library for EC operations on curve secp256k1";
longDescription = ''
Optimized C library for EC operations on curve secp256k1. Part of
Bitcoin Core. This library is a work in progress and is being used
to research best practices. Use at your own risk.
2016-06-04 13:55:15 -04:00
'';
homepage = "https://github.com/bitcoin-core/secp256k1";
2016-06-04 13:55:15 -04:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ ];
platforms = with platforms; unix;
2016-06-04 13:55:15 -04:00
};
}