Commit 01e12560 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

dfc: fix for CMake v4

parent 2b6e272f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -15,6 +15,14 @@ stdenv.mkDerivation rec {
    sha256 = "0m1fd7l85ckb7bq4c5c3g257bkjglm8gq7x42pkmpp87fkknc94n";
  };

  # Fix for CMake v4
  # ref. https://github.com/rolinh/dfc/pull/35
  postPatch = ''
    substituteInPlace CMakeLists.txt --replace-fail \
      "cmake_minimum_required(VERSION 2.8.4)" \
      "cmake_minimum_required(VERSION 3.10)"
  '';

  nativeBuildInputs = [
    cmake
    gettext