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

tangerine: fix build with cmake4

parent fac5e90a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -37,6 +37,14 @@ stdenv.mkDerivation {
    libX11
  ];

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 3.24)" "cmake_minimum_required(VERSION 3.10)"
    substituteInPlace third_party/glm-0.9.9.8/CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 3.2 FATAL_ERROR)" "cmake_minimum_required(VERSION 3.10)" \
      --replace-fail "cmake_policy(VERSION 3.2)" "cmake_policy(VERSION 3.10)"
  '';

  meta = with lib; {
    description = "System for creating 3D models procedurally from a set of Signed Distance Function (SDF) primitive shapes and combining operators";
    homepage = "https://github.com/Aeva/tangerine";