16 version = "20140603-unstable-2024-02-23";
26 ] ++ lib.optional withProcps procps;
29 lib.optionals (!withProcps) [ "-DWITH_PROCPS=OFF" ]
30 ++ lib.optionals (stdenv.hostPlatform.isDarwin || !stdenv.hostPlatform.isx86) [
33 ++ lib.optionals (!stdenv.hostPlatform.isx86) [ "-DCURVE=ALT_BN128" ];
35 src = fetchFromGitHub {
38 rev = "6c705e3135f585c222813654caedc86520fda1f6";
39 hash = "sha256-5Gk24fwVaXBWEFmhTsN9Qm8x/Qpr1KjavI3staJidxQ=";
40 fetchSubmodules = true;
44 broken = withProcps; # Despite procps having a valid pkg-config file, CMake doesn't seem to be able to find it.
45 description = "C++ library for zkSNARKs";
46 homepage = "https://github.com/scipr-lab/libsnark";
47 license = lib.licenses.mit;
48 platforms = lib.platforms.all;