diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-11-09 10:30:57 -0500 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2021-11-09 10:31:44 -0500 |
commit | 034d565493b0383cb02800cf8449700e76dbc9bb (patch) | |
tree | 92c4b42eff8358af1d6a2d03d2b8fe27c9a3cccc | |
parent | 3119a60230fe3715c515f73ad41dd7a4f0019a18 (diff) |
lhapdf: fix compilation with gccStdenv on darwin
This is used to compile against MCFM that is built with GCC
-rw-r--r-- | pkgs/development/libraries/physics/lhapdf/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/physics/lhapdf/default.nix b/pkgs/development/libraries/physics/lhapdf/default.nix index db185e2991976..a3753d86356ea 100644 --- a/pkgs/development/libraries/physics/lhapdf/default.nix +++ b/pkgs/development/libraries/physics/lhapdf/default.nix @@ -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 ]; |