Merge pull request #145210 from veprbl/pr/mcfm_zhf_2111
lhapdf: fix compilation with gccStdenv on darwin
This commit is contained in:
commit
a342531d5b
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue