diff options
Diffstat (limited to 'pkgs/development/libraries/physics/lhapdf/default.nix')
-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 ]; |