Unverified Commit b6c47826 authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

msgpuck: fix build with cmake4 (#454699)

parents 3c327104 0267f988
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -27,6 +27,13 @@ stdenv.mkDerivation rec {
    pkg-config
  ];

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 2.8.5)" "cmake_minimum_required(VERSION 3.10)"
    substituteInPlace test/CMakeLists.txt \
      --replace-fail "cmake_policy(SET CMP0037 OLD)" "cmake_policy(SET CMP0037 NEW)"
  '';

  meta = with lib; {
    description = "Simple and efficient MsgPack binary serialization library in a self-contained header file";
    homepage = "https://github.com/rtsisyk/msgpuck";