forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#105400 from arcz/libff
libff: init at 1.0.0
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters