coordgenlibs: fix build with LLVM 21

Emily bedad1ed 293b5d5a

+12
+12
pkgs/by-name/co/coordgenlibs/package.nix
··· 1 { 2 fetchFromGitHub, 3 lib, 4 stdenv, 5 boost, ··· 19 hash = "sha256-casFPNbPv9mkKpzfBENW7INClypuCO1L7clLGBXvSvI="; 20 }; 21 22 nativeBuildInputs = [ cmake ]; 23 buildInputs = [ 24 boost ··· 37 ''; 38 39 doCheck = true; 40 41 meta = with lib; { 42 description = "Schrodinger-developed 2D Coordinate Generation";
··· 1 { 2 fetchFromGitHub, 3 + fetchpatch, 4 lib, 5 stdenv, 6 boost, ··· 20 hash = "sha256-casFPNbPv9mkKpzfBENW7INClypuCO1L7clLGBXvSvI="; 21 }; 22 23 + patches = [ 24 + (fetchpatch { 25 + name = "coordgenlibs-fix-unused-but-set-variable.patch"; 26 + url = "https://github.com/schrodinger/coordgenlibs/commit/6a1485643feb71c6d609d263f28751004c733cf7.patch"; 27 + hash = "sha256-x34v+XumVip43LYb4bEkdqPFcTRTeC/zsRuQjnrh2zw="; 28 + }) 29 + ]; 30 + 31 nativeBuildInputs = [ cmake ]; 32 buildInputs = [ 33 boost ··· 46 ''; 47 48 doCheck = true; 49 + 50 + # Fix the build with Clang 20. 51 + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=deprecated-literal-operator"; 52 53 meta = with lib; { 54 description = "Schrodinger-developed 2D Coordinate Generation";