about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSimon Hollingshead <me@simonhollingshead.com>2024-02-23 00:19:25 +0000
committerSimon Hollingshead <me@simonhollingshead.com>2024-02-23 11:50:31 +0000
commitcac7e060ef1092cc6a07b109719845b4e59653b4 (patch)
tree3d62178865a6f93549fe31db5e5e92662ee77db7
parenta331a49cf7bbc33aee0698d5cc6e5e458e0d73e9 (diff)
downloadnixlib-cac7e060ef1092cc6a07b109719845b4e59653b4.tar
nixlib-cac7e060ef1092cc6a07b109719845b4e59653b4.tar.gz
nixlib-cac7e060ef1092cc6a07b109719845b4e59653b4.tar.bz2
nixlib-cac7e060ef1092cc6a07b109719845b4e59653b4.tar.lz
nixlib-cac7e060ef1092cc6a07b109719845b4e59653b4.tar.xz
nixlib-cac7e060ef1092cc6a07b109719845b4e59653b4.tar.zst
nixlib-cac7e060ef1092cc6a07b109719845b4e59653b4.zip
rapidjson-unstable: Remove C++11 mode.
This is because the current version of gtest only supports C++14 and above.
-rw-r--r--pkgs/development/libraries/rapidjson/unstable.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/development/libraries/rapidjson/unstable.nix b/pkgs/development/libraries/rapidjson/unstable.nix
index 0f4c3d40403e..fd7ffe61ba39 100644
--- a/pkgs/development/libraries/rapidjson/unstable.nix
+++ b/pkgs/development/libraries/rapidjson/unstable.nix
@@ -6,8 +6,6 @@
 , graphviz
 , gtest
 , valgrind
-# One of "11" or "17"; default in source is CXX 11
-, cxxStandard ? "11"
 , buildDocs ? true
 , buildTests ? !stdenv.hostPlatform.isStatic && !stdenv.isDarwin
 , buildExamples ? true
@@ -49,8 +47,9 @@ stdenv.mkDerivation (finalAttrs: {
     (lib.cmakeBool "RAPIDJSON_BUILD_DOC" buildDocs)
     (lib.cmakeBool "RAPIDJSON_BUILD_TESTS" buildTests)
     (lib.cmakeBool "RAPIDJSON_BUILD_EXAMPLES" buildExamples)
-    (lib.cmakeBool "RAPIDJSON_BUILD_CXX11" (cxxStandard == "11"))
-    (lib.cmakeBool "RAPIDJSON_BUILD_CXX17" (cxxStandard == "17"))
+    # gtest 1.13+ requires C++14 or later.
+    (lib.cmakeBool "RAPIDJSON_BUILD_CXX11" false)
+    (lib.cmakeBool "RAPIDJSON_BUILD_CXX17" true)
   ] ++ lib.optionals buildTests [
     (lib.cmakeFeature "GTEST_INCLUDE_DIR" "${lib.getDev gtest}")
   ];
@@ -77,6 +76,5 @@ stdenv.mkDerivation (finalAttrs: {
     license = licenses.mit;
     platforms = platforms.unix;
     maintainers = with maintainers; [ Madouura ];
-    broken = (cxxStandard != "11" && cxxStandard != "17");
   };
 })