coordgenlibs: fix build with CMake 4

Co-authored-by: K900 <me@0upti.me>

Emily 293b5d5a 493eebd4

+9 -3
+9 -3
pkgs/by-name/co/coordgenlibs/package.nix
··· 26 maeparser 27 ]; 28 29 - env = lib.optionalAttrs stdenv.cc.isClang { 30 - NIX_CFLAGS_COMPILE = "-Wno-unused-but-set-variable"; 31 - }; 32 33 doCheck = true; 34
··· 26 maeparser 27 ]; 28 29 + # Fix the build with CMake 4. 30 + # 31 + # See: <https://github.com/schrodinger/coordgenlibs/pull/130> 32 + postPatch = '' 33 + substituteInPlace CMakeLists.txt \ 34 + --replace-fail \ 35 + 'cmake_minimum_required(VERSION 3.2)' \ 36 + 'cmake_minimum_required(VERSION 3.5)' 37 + ''; 38 39 doCheck = true; 40