Unverified Commit 8a44a274 authored by Rafael Ieda's avatar Rafael Ieda
Browse files

duckx: fix build with cmake4

parent 6b4cb912
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -27,6 +27,13 @@ stdenv.mkDerivation (finalAttrs: {
    (lib.cmakeFeature "CMAKE_CXX_STANDARD" "14")
  ];

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 3.0)" "cmake_minimum_required(VERSION 3.10)"
    # CMake 3.0 is deprecated and is no longer supported by CMake > 4
    # https://github.com/NixOS/nixpkgs/issues/445447
  '';

  passthru = {
    updateScript = gitUpdater { rev-prefix = "v"; };
  };