From e79ff6a49d302b2e064135f611c5ffc821b95eed Mon Sep 17 00:00:00 2001 From: Fernando Rodrigues Date: Sat, 2 Nov 2024 17:22:01 +0000 Subject: [PATCH] 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 --- pkgs/by-name/li/libsnark/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/libsnark/package.nix b/pkgs/by-name/li/libsnark/package.nix index 9fe0ae7e5e5f..199ab79c169b 100644 --- a/pkgs/by-name/li/libsnark/package.nix +++ b/pkgs/by-name/li/libsnark/package.nix @@ -7,6 +7,7 @@ openssl, boost, gmp, + withProcps ? false, procps, }: @@ -22,10 +23,10 @@ stdenv.mkDerivation { openssl boost gmp - ] ++ lib.optional stdenv.hostPlatform.isLinux procps; + ] ++ lib.optional withProcps procps; cmakeFlags = - lib.optionals stdenv.hostPlatform.isDarwin [ "-DWITH_PROCPS=OFF" ] + lib.optionals (!withProcps) [ "-DWITH_PROCPS=OFF" ] ++ lib.optionals (stdenv.hostPlatform.isDarwin || !stdenv.hostPlatform.isx86) [ "-DWITH_SUPERCOP=OFF" ] @@ -40,6 +41,7 @@ stdenv.mkDerivation { }; 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"; homepage = "https://github.com/scipr-lab/libsnark"; license = lib.licenses.mit;