10 enableStatic ? stdenv.hostPlatform.isStatic,
13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
21 sha256 = "0dczi829497vqlmn6n4fgi89bc2h9f13gx30av5z2h6ikik7crgn";
22 fetchSubmodules = true;
26 [ "-DWITH_PROCPS=Off" ]
27 ++ lib.optionals stdenv.hostPlatform.isAarch64 [
32 postPatch = lib.optionalString (!enableStatic) ''
33 substituteInPlace libff/CMakeLists.txt --replace "STATIC" "SHARED"
47 description = "C++ library for Finite Fields and Elliptic Curves";
48 changelog = "https://github.com/scipr-lab/libff/blob/develop/CHANGELOG.md";
49 homepage = "https://github.com/scipr-lab/libff";
50 license = licenses.mit;
51 platforms = platforms.unix;
52 maintainers = with maintainers; [ arturcygan ];