From 3d3e330ee7f718311a1a89c980d605f1f29827d4 Mon Sep 17 00:00:00 2001 From: Minegame YTB <53137994+minegameYTB@users.noreply.github.com> Date: Sun, 12 Oct 2025 19:03:22 +0200 Subject: [PATCH] dreamchess: fix build with cmake 4 --- pkgs/by-name/dr/dreamchess/0000-fix-cmake-min.patch | 10 ++++++++++ pkgs/by-name/dr/dreamchess/package.nix | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/by-name/dr/dreamchess/0000-fix-cmake-min.patch diff --git a/pkgs/by-name/dr/dreamchess/0000-fix-cmake-min.patch b/pkgs/by-name/dr/dreamchess/0000-fix-cmake-min.patch new file mode 100644 index 000000000000..c818cfadb3ac --- /dev/null +++ b/pkgs/by-name/dr/dreamchess/0000-fix-cmake-min.patch @@ -0,0 +1,10 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a007f60..a993999 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.2) ++cmake_minimum_required(VERSION 3.10) + project(DreamChess VERSION 0.3.0) + + set(DREAMCHESS_RELEASE TRUE) diff --git a/pkgs/by-name/dr/dreamchess/package.nix b/pkgs/by-name/dr/dreamchess/package.nix index 25ad30bef91b..d53a874d8d91 100644 --- a/pkgs/by-name/dr/dreamchess/package.nix +++ b/pkgs/by-name/dr/dreamchess/package.nix @@ -30,6 +30,11 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-qus/RjwdAl9SuDXfLVKTPImqrvPF3xSDVlbXYLM3JNE="; }; + patches = [ + ### Fix cmake minimum version + ./0000-fix-cmake-min.patch + ]; + buildInputs = [ SDL2 SDL2_image