abseil-cpp_202301: install test helpers

This commit is contained in:
Tobias Mayer 2023-07-20 20:17:15 +02:00
parent c118bb4f9a
commit dc5cd92e50
No known key found for this signature in database
GPG key ID: F8657E90819A1298

View file

@ -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/";