From 6e67c6ab86e135ed0fa0d5bbbb112f84f94dcc62 Mon Sep 17 00:00:00 2001 From: Svenum Date: Tue, 14 Oct 2025 11:28:19 +0200 Subject: [PATCH 1/6] audialitiy2: fix build --- pkgs/by-name/au/audiality2/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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 From d1342a6cfce204faa8278e1143aba6ae77fee7e5 Mon Sep 17 00:00:00 2001 From: Svenum Date: Tue, 14 Oct 2025 12:48:17 +0200 Subject: [PATCH 2/6] bowtie2: fix build --- pkgs/by-name/bo/bowtie2/package.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ]; From 38ae2a8fe89f0c9e36cb998b9cebd541d1128208 Mon Sep 17 00:00:00 2001 From: Svenum Date: Tue, 14 Oct 2025 12:51:52 +0200 Subject: [PATCH 3/6] bustools: fix build --- pkgs/by-name/bu/bustools/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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"; From 64db0c708c029a22bda6d5d6da560d2294e38b5c Mon Sep 17 00:00:00 2001 From: Svenum Date: Tue, 14 Oct 2025 23:32:45 +0200 Subject: [PATCH 4/6] qstopmotion: fix build --- pkgs/by-name/qs/qstopmotion/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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' ''; From b76af7d00e5711168729387ea45b852da82d1374 Mon Sep 17 00:00:00 2001 From: Svenum Date: Thu, 16 Oct 2025 08:55:40 +0200 Subject: [PATCH 5/6] chiaki: fix build --- pkgs/games/chiaki/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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 From ee13958ad2234eae15cf11b16a8ea978936211a9 Mon Sep 17 00:00:00 2001 From: Svenum Date: Wed, 22 Oct 2025 09:17:26 +0200 Subject: [PATCH 6/6] clfft: fix build --- pkgs/by-name/cl/clfft/package.nix | 3 +++ 1 file changed, 3 insertions(+) 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 ];