Merge pull request #145210 from veprbl/pr/mcfm_zhf_2111
lhapdf: fix compilation with gccStdenv on darwin
This commit is contained in:
commit
a342531d5b
@ -9,6 +9,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-fS8CZ+LWWw3e4EhVOzQtfIk6bbq+HjJsrWLeABDdgQw=";
|
||||
};
|
||||
|
||||
# The Apple SDK only exports locale_t from xlocale.h whereas glibc
|
||||
# had decided that xlocale.h should be a part of locale.h
|
||||
postPatch = lib.optionalString (stdenv.isDarwin && stdenv.cc.isGNU) ''
|
||||
substituteInPlace src/GridPDF.cc --replace '#include <locale>' '#include <xlocale.h>'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ python ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user