-
Notifications
You must be signed in to change notification settings - Fork 83
/
secp256k1.nix
47 lines (39 loc) · 1.21 KB
/
secp256k1.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ pkgs ? import <nixpkgs> {} }:
pkgs.compilationStdenv.mkDerivation {
pname = "secp256k1-chfast";
version = "unstable-20170313";
src = pkgs.fetchFromGitHub {
owner = "chfast";
repo = "secp256k1";
rev = "ac8ccf29b8c6b2b793bc734661ce43d1f952977a";
sha256 = "0kq4fyvi3mz0cggbwjrl9av16jkq7cifr3ac8b7mpi3ycw4babpf";
};
nativeBuildInputs = [
pkgs.autoreconfHook
pkgs.pkg-config
];
configureFlags = [
"--enable-benchmark=no"
"--enable-exhaustive-tests=no"
"--enable-experimental"
"--enable-module-ecdh"
"--enable-module-recovery"
"--enable-module-schnorrsig"
"--enable-tests=yes"
"--enable-static"
];
doCheck = true;
checkPhase = "./tests";
meta = with pkgs.lib; {
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.
'';
homepage = "https://github.com/chfast/secp256k1";
license = with licenses; [ mit ];
maintainers = with maintainers; [ ];
platforms = with platforms; unix;
};
}