opencollada-blender: fix build with cmake 4

Grimmauld 4fa55979 f5102af8

+38
+26
pkgs/by-name/op/opencollada-blender/cmake4-compat.patch
···
··· 1 + From f036950f1ccc3ebdfe2fdc0a52d35a4620252901 Mon Sep 17 00:00:00 2001 2 + From: Grimmauld <Grimmauld@grimmauld.de> 3 + Date: Sat, 27 Sep 2025 11:43:21 +0200 4 + Subject: [PATCH] Build: update cmake minimum version to 3.10 5 + 6 + cmake ABI compatibility with cmake <3.5 has been removed in cmake 4. 7 + Compatibility with cmake <3.10 is deprecated and soon to be removed. 8 + Thus set 3.10 minimum version. This is available in the vast majority 9 + of current linux distributions, as well as other platforms. 10 + --- 11 + CMakeLists.txt | 2 +- 12 + 1 file changed, 1 insertion(+), 1 deletion(-) 13 + 14 + diff --git a/CMakeLists.txt b/CMakeLists.txt 15 + index 95abbe213..2d14b2552 100644 16 + --- a/CMakeLists.txt 17 + +++ b/CMakeLists.txt 18 + @@ -18,7 +18,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) 19 + endif() 20 + endif() 21 + 22 + -cmake_minimum_required(VERSION 2.6) 23 + +cmake_minimum_required(VERSION 3.10) 24 + 25 + 26 + #-----------------------------------------------------------------------------
+12
pkgs/by-name/op/opencollada-blender/package.nix
··· 1 { 2 cmake, 3 fetchFromGitHub, 4 lib, 5 libxml2, ··· 19 sha256 = "sha256-ctr+GjDzxOJxBfaMwjwayPkAOcF+FMsP1X72QCOwvTY="; 20 }; 21 22 nativeBuildInputs = [ 23 cmake 24 pkg-config 25 ]; 26 27 propagatedBuildInputs = [
··· 1 { 2 cmake, 3 + dos2unix, 4 fetchFromGitHub, 5 lib, 6 libxml2, ··· 20 sha256 = "sha256-ctr+GjDzxOJxBfaMwjwayPkAOcF+FMsP1X72QCOwvTY="; 21 }; 22 23 + # Fix freaky dos-style CLRF things 24 + prePatch = '' 25 + dos2unix CMakeLists.txt 26 + ''; 27 + 28 + patches = [ 29 + # https://github.com/aras-p/OpenCOLLADA/pull/1 30 + ./cmake4-compat.patch 31 + ]; 32 + 33 nativeBuildInputs = [ 34 cmake 35 pkg-config 36 + dos2unix 37 ]; 38 39 propagatedBuildInputs = [