mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
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=";
|
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 ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ python ];
|
buildInputs = [ python ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user