From eb7e446388048599ea9bdc4d1e407f0ab590ae6f Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Fri, 10 May 2024 02:34:44 -0400 Subject: [PATCH] nlojet: compile with c++11 --- pkgs/development/libraries/physics/nlojet/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/physics/nlojet/default.nix b/pkgs/development/libraries/physics/nlojet/default.nix index c477f98ae7b9..4e2d878db00c 100644 --- a/pkgs/development/libraries/physics/nlojet/default.nix +++ b/pkgs/development/libraries/physics/nlojet/default.nix @@ -13,6 +13,8 @@ stdenv.mkDerivation rec { ./nlojet_clang_fix.patch ]; + env.CXXFLAGS="-std=c++11"; + # error: no member named 'finite' in the global namespace; did you mean simply 'finite'? env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-Dfinite=isfinite";