diff options
author | Artur Cygan <arczicygan@gmail.com> | 2020-11-28 23:14:07 +0100 |
---|---|---|
committer | Artur Cygan <arczicygan@gmail.com> | 2020-11-29 23:08:20 +0100 |
commit | 304fe564a157615a72c1675e820bd8319af24875 (patch) | |
tree | 3d510f63774a5ba7d98a025e921f573d8226cc42 /pkgs/development/libraries/libff | |
parent | 02befe5f15e0e72d225cffeaefeedbbe7a3bf621 (diff) |
libff: init at 1.0.0
Diffstat (limited to 'pkgs/development/libraries/libff')
-rw-r--r-- | pkgs/development/libraries/libff/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libff/default.nix b/pkgs/development/libraries/libff/default.nix new file mode 100644 index 0000000000000..8413d5be44101 --- /dev/null +++ b/pkgs/development/libraries/libff/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, cmake, boost, gmp, openssl, pkg-config }: + +stdenv.mkDerivation rec { + pname = "libff"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "scipr-lab"; + repo = "libff"; + rev = "v${version}"; + sha256 = "0dczi829497vqlmn6n4fgi89bc2h9f13gx30av5z2h6ikik7crgn"; + fetchSubmodules = true; + }; + + cmakeFlags = [ "-DWITH_PROCPS=Off" ]; + + nativeBuildInputs = [ cmake pkg-config ]; + buildInputs = [ boost gmp openssl ]; + + meta = with stdenv.lib; { + description = "C++ library for Finite Fields and Elliptic Curves"; + changelog = "https://github.com/scipr-lab/libff/blob/develop/CHANGELOG.md"; + homepage = "https://github.com/scipr-lab/libff"; + license = licenses.mit; + platforms = platforms.unix; + maintainers = with maintainers; [ arturcygan ]; + }; +} |