Unverified Commit 61b02f2f authored by Vladimír Čunát's avatar Vladimír Čunát Committed by GitHub
Browse files

duckx: fix build with cmake4 (#453510)

parents d62e5968 8a44a274
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"; };
  };