Skip to content

Commit

Permalink
Merge pull request NixOS#105400 from arcz/libff
Browse files Browse the repository at this point in the history
libff: init at 1.0.0
  • Loading branch information
cdepillabout authored Nov 30, 2020
2 parents db4f3ea + 304fe56 commit a2b278f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/development/libraries/libff/default.nix
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14012,6 +14012,8 @@ in

libfixposix = callPackage ../development/libraries/libfixposix {};

libff = callPackage ../development/libraries/libff { };

libffcall = callPackage ../development/libraries/libffcall { };

libffi = callPackage ../development/libraries/libffi { };
Expand Down

0 comments on commit a2b278f

Please sign in to comment.