about summary refs log tree commit diff
path: root/pkgs/development/libraries/physics/fastnlo-toolkit/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/physics/fastnlo-toolkit/default.nix')
-rw-r--r--pkgs/development/libraries/physics/fastnlo-toolkit/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/physics/fastnlo-toolkit/default.nix b/pkgs/development/libraries/physics/fastnlo-toolkit/default.nix
index 66a3bf5128f5d..3c781689bbf83 100644
--- a/pkgs/development/libraries/physics/fastnlo-toolkit/default.nix
+++ b/pkgs/development/libraries/physics/fastnlo-toolkit/default.nix
@@ -60,6 +60,10 @@ stdenv.mkDerivation rec {
   '';
   enableParallelChecking = false;
 
+  # None of our currently packaged versions of swig are C++17-friendly
+  # Use a workaround from https://github.com/swig/swig/issues/1538
+  env.CXXFLAGS="-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES";
+
   meta = with lib; {
     homepage = "http://fastnlo.hepforge.org";
     description = "Fast pQCD calculations for hadron-induced processes";