Unverified Commit e46241b9 authored by Rafael Ieda's avatar Rafael Ieda
Browse files

libsnark: fix build with cmake4

parent 0b3f6f53
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -41,6 +41,13 @@ stdenv.mkDerivation {
    fetchSubmodules = true;
  };

  postPatch = ''
    substituteInPlace {,depends/{libff,libfqfft}/}CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)"
    substituteInPlace depends/gtest/{,googlemock/,googletest/}CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 2.6.4)" "cmake_minimum_required(VERSION 3.10)"
  '';

  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";