From dc5cd92e5074a9c95ed1c99e125cff44c58faf7c Mon Sep 17 00:00:00 2001 From: Tobias Mayer Date: Thu, 20 Jul 2023 20:17:15 +0200 Subject: [PATCH] abseil-cpp_202301: install test helpers --- pkgs/development/libraries/abseil-cpp/202301.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/abseil-cpp/202301.nix b/pkgs/development/libraries/abseil-cpp/202301.nix index a1c42c5df4b4..da5f1fc029e1 100644 --- a/pkgs/development/libraries/abseil-cpp/202301.nix +++ b/pkgs/development/libraries/abseil-cpp/202301.nix @@ -2,6 +2,7 @@ , stdenv , fetchFromGitHub , cmake +, gtest , static ? stdenv.hostPlatform.isStatic , cxxStandard ? null }: @@ -18,13 +19,19 @@ stdenv.mkDerivation (finalAttrs: { }; cmakeFlags = [ + "-DABSL_BUILD_TEST_HELPERS=ON" + "-DABSL_USE_EXTERNAL_GOOGLETEST=ON" "-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}" ] ++ lib.optionals (cxxStandard != null) [ "-DCMAKE_CXX_STANDARD=${cxxStandard}" ]; + strictDeps = true; + nativeBuildInputs = [ cmake ]; + buildInputs = [ gtest ]; + meta = with lib; { description = "An open-source collection of C++ code designed to augment the C++ standard library"; homepage = "https://abseil.io/";