libsnark: mark broken if procps is used

CMake can't find procps' pkg-config file, leading to a build failure.
It's an optional feature which is already disabled in Darwin, so it's
probably not that much of an issue to remove it.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
Fernando Rodrigues 2024-11-02 17:22:01 +00:00
parent a8873dec44
commit e79ff6a49d
No known key found for this signature in database
GPG Key ID: CC3AE2EA00000000

View File

@ -7,6 +7,7 @@
openssl, openssl,
boost, boost,
gmp, gmp,
withProcps ? false,
procps, procps,
}: }:
@ -22,10 +23,10 @@ stdenv.mkDerivation {
openssl openssl
boost boost
gmp gmp
] ++ lib.optional stdenv.hostPlatform.isLinux procps; ] ++ lib.optional withProcps procps;
cmakeFlags = cmakeFlags =
lib.optionals stdenv.hostPlatform.isDarwin [ "-DWITH_PROCPS=OFF" ] lib.optionals (!withProcps) [ "-DWITH_PROCPS=OFF" ]
++ lib.optionals (stdenv.hostPlatform.isDarwin || !stdenv.hostPlatform.isx86) [ ++ lib.optionals (stdenv.hostPlatform.isDarwin || !stdenv.hostPlatform.isx86) [
"-DWITH_SUPERCOP=OFF" "-DWITH_SUPERCOP=OFF"
] ]
@ -40,6 +41,7 @@ stdenv.mkDerivation {
}; };
meta = { meta = {
broken = withProcps; # Despite procps having a valid pkg-config file, CMake doesn't seem to be able to find it.
description = "C++ library for zkSNARKs"; description = "C++ library for zkSNARKs";
homepage = "https://github.com/scipr-lab/libsnark"; homepage = "https://github.com/scipr-lab/libsnark";
license = lib.licenses.mit; license = lib.licenses.mit;