libsnark: format with nixfmt-rfc-style

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
Fernando Rodrigues 2024-11-02 17:19:39 +00:00
parent 12aa98067d
commit 8e1ecbc05d
No known key found for this signature in database
GPG Key ID: CC3AE2EA00000000

View File

@ -1,21 +1,41 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, openssl, boost, gmp, procps }:
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
openssl,
boost,
gmp,
procps,
}:
stdenv.mkDerivation rec {
pname = "libsnark";
version = "unstable-2018-01-15";
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ openssl boost gmp ] ++ lib.optional stdenv.hostPlatform.isLinux procps;
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
openssl
boost
gmp
] ++ lib.optional stdenv.hostPlatform.isLinux procps;
cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "-DWITH_PROCPS=OFF" ]
++ lib.optionals (stdenv.hostPlatform.isDarwin || !stdenv.hostPlatform.isx86) [ "-DWITH_SUPERCOP=OFF" ]
cmakeFlags =
lib.optionals stdenv.hostPlatform.isDarwin [ "-DWITH_PROCPS=OFF" ]
++ lib.optionals (stdenv.hostPlatform.isDarwin || !stdenv.hostPlatform.isx86) [
"-DWITH_SUPERCOP=OFF"
]
++ lib.optionals (!stdenv.hostPlatform.isx86) [ "-DCURVE=ALT_BN128" ];
src = fetchFromGitHub {
rev = "9e6b19ff15bc19fba5da1707ba18e7f160e5ed07";
owner = "scipr-lab";
repo = "libsnark";
sha256 = "13f02qp2fmfhvxlp4xi69m0l8r5nq913l2f0zwdk7hl46lprfdca";
owner = "scipr-lab";
repo = "libsnark";
sha256 = "13f02qp2fmfhvxlp4xi69m0l8r5nq913l2f0zwdk7hl46lprfdca";
fetchSubmodules = true;
};