Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
gtest,
|
|
static ? stdenv.hostPlatform.isStatic,
|
|
cxxStandard ? null,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "abseil-cpp";
|
|
version = "20250814.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "abseil";
|
|
repo = "abseil-cpp";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-6Ro7miql9+wcArsOKTjlyDSyD91rmmPsIfO5auk9kiI=";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "ABSL_BUILD_TEST_HELPERS" true)
|
|
(lib.cmakeBool "ABSL_USE_EXTERNAL_GOOGLETEST" true)
|
|
(lib.cmakeBool "BUILD_SHARED_LIBS" (!static))
|
|
]
|
|
++ lib.optionals (cxxStandard != null) [
|
|
(lib.cmakeFeature "CMAKE_CXX_STANDARD" cxxStandard)
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ gtest ];
|
|
|
|
meta = {
|
|
description = "Open-source collection of C++ code designed to augment the C++ standard library";
|
|
homepage = "https://abseil.io/";
|
|
changelog = "https://github.com/abseil/abseil-cpp/releases/tag/${finalAttrs.version}";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.all;
|
|
maintainers = [ lib.maintainers.GaetanLepage ];
|
|
};
|
|
})
|