2021-03-22 06:38:32 -07:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
2019-08-05 00:50:55 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "secp256k1";
|
|
|
|
|
|
|
|
version = "2019-10-11";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bitcoin-core";
|
|
|
|
repo = "secp256k1";
|
|
|
|
rev = "0d9540b13ffcd7cd44cc361b8744b93d88aa76ba";
|
|
|
|
sha256 = "05zwhv8ffzrfdzqbsb4zm4kjdbjxqy5jh9r83fic0qpk2mkvc2i2";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
configureFlags = ["--enable-module-recovery" "--disable-jni" "--enable-experimental" "--enable-module-ecdh" "--enable-benchmark=no" ];
|
|
|
|
|
2021-03-22 06:38:32 -07:00
|
|
|
meta = with lib; {
|
2019-08-05 00:50:55 -07:00
|
|
|
description = "Optimized C library for EC operations on curve secp256k1";
|
|
|
|
homepage = "https://github.com/bitcoin-core/secp256k1";
|
2021-12-14 10:51:23 -08:00
|
|
|
license = licenses.mit;
|
2019-08-05 00:50:55 -07:00
|
|
|
maintainers = with maintainers; [ nixbitcoin ];
|
2021-12-14 10:51:23 -08:00
|
|
|
platforms = platforms.unix;
|
2019-08-05 00:50:55 -07:00
|
|
|
};
|
|
|
|
}
|