diff --git a/pkgs/by-name/au/audiality2/package.nix b/pkgs/by-name/au/audiality2/package.nix index 61e83d4fac5d..d6c6e328fa7d 100644 --- a/pkgs/by-name/au/audiality2/package.nix +++ b/pkgs/by-name/au/audiality2/package.nix @@ -20,6 +20,12 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "0ipqna7a9mxqm0fl9ggwhbc7i9yxz3jfyi0w3dymjp40v7jw1n20"; }; + postPatch = '' + substituteInPlace CMakeLists.txt --replace-fail \ + 'cmake_minimum_required(VERSION 2.8)' \ + 'cmake_minimum_required(VERSION 3.5)' + ''; + nativeBuildInputs = [ cmake pkg-config diff --git a/pkgs/by-name/bo/bowtie2/package.nix b/pkgs/by-name/bo/bowtie2/package.nix index 5286edb36f81..7349d505e7ce 100644 --- a/pkgs/by-name/bo/bowtie2/package.nix +++ b/pkgs/by-name/bo/bowtie2/package.nix @@ -28,7 +28,9 @@ stdenv.mkDerivation (finalAttrs: { # TODO: check with other distros and report upstream postPatch = '' substituteInPlace CMakeLists.txt \ - --replace "-m64" "" + --replace-fail "-m64" "" \ + --replace-fail 'cmake_minimum_required(VERSION 3.1 FATAL_ERROR)' \ + 'cmake_minimum_required(VERSION 3.5 FATAL_ERROR)' ''; nativeBuildInputs = [ cmake ]; diff --git a/pkgs/by-name/bu/bustools/package.nix b/pkgs/by-name/bu/bustools/package.nix index d42e48bf131f..4951b32c5115 100644 --- a/pkgs/by-name/bu/bustools/package.nix +++ b/pkgs/by-name/bu/bustools/package.nix @@ -23,6 +23,12 @@ stdenv.mkDerivation rec { buildInputs = [ zlib ]; + postPatch = '' + substituteInPlace CMakeLists.txt --replace-fail \ + 'cmake_minimum_required(VERSION 2.8.12)' \ + 'cmake_minimum_required(VERSION 3.5)' + ''; + passthru.tests.version = testers.testVersion { package = bustools; command = "bustools version"; diff --git a/pkgs/by-name/cl/clfft/package.nix b/pkgs/by-name/cl/clfft/package.nix index e81f6aac8ceb..5c1ed6fba19c 100644 --- a/pkgs/by-name/cl/clfft/package.nix +++ b/pkgs/by-name/cl/clfft/package.nix @@ -28,6 +28,9 @@ stdenv.mkDerivation rec { postPatch = '' sed -i '/-m64/d;/-m32/d' CMakeLists.txt + substituteInPlace CMakeLists.txt --replace-fail \ + 'cmake_minimum_required( VERSION 2.6 )' \ + 'cmake_minimum_required( VERSION 3.5 ) ' ''; nativeBuildInputs = [ cmake ]; diff --git a/pkgs/by-name/qs/qstopmotion/package.nix b/pkgs/by-name/qs/qstopmotion/package.nix index 83913cf2905a..52e0d17f564b 100644 --- a/pkgs/by-name/qs/qstopmotion/package.nix +++ b/pkgs/by-name/qs/qstopmotion/package.nix @@ -67,7 +67,10 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace CMakeLists.txt \ --replace-fail \ "find_package(Qt5 REQUIRED COMPONENTS Core Widgets Xml" \ - "find_package(Qt5 REQUIRED COMPONENTS Core Widgets Xml Multimedia" + "find_package(Qt5 REQUIRED COMPONENTS Core Widgets Xml Multimedia" \ + --replace-fail \ + "cmake_minimum_required(VERSION 3.0.2)" \ + "cmake_minimum_required(VERSION 3.5)" grep -rl 'qwt' . | xargs sed -i 's@@@g' ''; diff --git a/pkgs/games/chiaki/default.nix b/pkgs/games/chiaki/default.nix index 608664d61ad5..03e5c528ac2f 100644 --- a/pkgs/games/chiaki/default.nix +++ b/pkgs/games/chiaki/default.nix @@ -33,6 +33,12 @@ mkDerivation rec { pkg-config ]; + postPatch = '' + substituteInPlace CMakeLists.txt --replace-fail \ + 'cmake_minimum_required(VERSION 3.2)' \ + 'cmake_minimum_required(VERSION 3.5)' + ''; + buildInputs = [ ffmpeg libopus