From a0540c39fff73fba0a52630a35217dc4dbca9dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C5=82a=C5=BCej=20Sowa?= Date: Sun, 12 Oct 2025 19:33:11 +0200 Subject: [PATCH] schroot: fix build with cmake 4 --- pkgs/by-name/sc/schroot/bump-cmake-minimum.patch | 12 ++++++++++++ pkgs/by-name/sc/schroot/package.nix | 1 + 2 files changed, 13 insertions(+) create mode 100644 pkgs/by-name/sc/schroot/bump-cmake-minimum.patch diff --git a/pkgs/by-name/sc/schroot/bump-cmake-minimum.patch b/pkgs/by-name/sc/schroot/bump-cmake-minimum.patch new file mode 100644 index 000000000000..b63b8c6b9988 --- /dev/null +++ b/pkgs/by-name/sc/schroot/bump-cmake-minimum.patch @@ -0,0 +1,12 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -13,8 +13,7 @@ + # You should have received a copy of the GNU General Public License + # along with this program. If not, see . + +-cmake_minimum_required(VERSION 2.8.12) +-cmake_policy(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.10) + + project(schroot) + diff --git a/pkgs/by-name/sc/schroot/package.nix b/pkgs/by-name/sc/schroot/package.nix index ca012cc05f25..7046d2344fbf 100644 --- a/pkgs/by-name/sc/schroot/package.nix +++ b/pkgs/by-name/sc/schroot/package.nix @@ -49,6 +49,7 @@ stdenv.mkDerivation { ./no-default-config.patch ./fix-absolute-paths.patch ./fix-boost-includes.patch + ./bump-cmake-minimum.patch ]; nativeBuildInputs = [