forked from mirrors/nixpkgs
lhapdf: fix compilation with gccStdenv on darwin
This is used to compile against MCFM that is built with GCC
This commit is contained in:
parent
3119a60230
commit
034d565493
|
@ -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