coordgenlibs: fix build with LLVM 21

Emily bedad1ed 293b5d5a

+12
+12
pkgs/by-name/co/coordgenlibs/package.nix
··· 1 1 { 2 2 fetchFromGitHub, 3 + fetchpatch, 3 4 lib, 4 5 stdenv, 5 6 boost, ··· 19 20 hash = "sha256-casFPNbPv9mkKpzfBENW7INClypuCO1L7clLGBXvSvI="; 20 21 }; 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 + 22 31 nativeBuildInputs = [ cmake ]; 23 32 buildInputs = [ 24 33 boost ··· 37 46 ''; 38 47 39 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"; 40 52 41 53 meta = with lib; { 42 54 description = "Schrodinger-developed 2D Coordinate Generation";