6 , static ? stdenv.hostPlatform.isStatic
10 stdenv.mkDerivation (finalAttrs: {
12 version = "20230802.1";
14 src = fetchFromGitHub {
17 rev = "refs/tags/${finalAttrs.version}";
18 hash = "sha256-uNGrTNg5G5xFGtc+BSWE389x0tQ/KxJQLHfebNWas/k=";
22 "-DABSL_BUILD_TEST_HELPERS=ON"
23 "-DABSL_USE_EXTERNAL_GOOGLETEST=ON"
24 "-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}"
25 ] ++ lib.optionals (cxxStandard != null) [
26 "-DCMAKE_CXX_STANDARD=${cxxStandard}"
31 nativeBuildInputs = [ cmake ];
33 buildInputs = [ gtest ];
36 description = "An open-source collection of C++ code designed to augment the C++ standard library";
37 homepage = "https://abseil.io/";
38 license = licenses.asl20;
39 platforms = platforms.all;
40 maintainers = [ maintainers.andersk ];