@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, cmake, boost, gmp, openssl, pkg-config }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "libff";
5+ version = "1.0.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "scipr-lab";
9+ repo = "libff";
10+ rev = "v${version}";
11+ sha256 = "0dczi829497vqlmn6n4fgi89bc2h9f13gx30av5z2h6ikik7crgn";
12+ fetchSubmodules = true;
13+ };
14+
15+ cmakeFlags = [ "-DWITH_PROCPS=Off" ];
16+
17+ nativeBuildInputs = [ cmake pkg-config ];
18+ buildInputs = [ boost gmp openssl ];
19+
20+ meta = with stdenv.lib; {
21+ description = "C++ library for Finite Fields and Elliptic Curves";
22+ changelog = "https://github.com/scipr-lab/libff/blob/develop/CHANGELOG.md";
23+ homepage = "https://github.com/scipr-lab/libff";
24+ license = licenses.mit;
25+ platforms = platforms.unix;
26+ maintainers = with maintainers; [ arturcygan ];
27+ };
28+}