lol

lhapdf: fix compilation with gccStdenv on darwin

This is used to compile against MCFM that is built with GCC

+6
+6
pkgs/development/libraries/physics/lhapdf/default.nix
··· 9 9 sha256 = "sha256-fS8CZ+LWWw3e4EhVOzQtfIk6bbq+HjJsrWLeABDdgQw="; 10 10 }; 11 11 12 + # The Apple SDK only exports locale_t from xlocale.h whereas glibc 13 + # had decided that xlocale.h should be a part of locale.h 14 + postPatch = lib.optionalString (stdenv.isDarwin && stdenv.cc.isGNU) '' 15 + substituteInPlace src/GridPDF.cc --replace '#include <locale>' '#include <xlocale.h>' 16 + ''; 17 + 12 18 nativeBuildInputs = [ makeWrapper ]; 13 19 buildInputs = [ python ]; 14 20