abseil-cpp_202206: init at 20220623.1

This commit is contained in:
Martin Weinelt 2022-09-28 17:33:36 +02:00
parent b4fb830c37
commit 7399b9f0cf
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, static ? stdenv.hostPlatform.isStatic
, cxxStandard ? null
}:
stdenv.mkDerivation rec {
pname = "abseil-cpp";
version = "20220623.1";
src = fetchFromGitHub {
owner = "abseil";
repo = "abseil-cpp";
rev = "refs/tags/${version}";
hash = "sha256-Od1FZOOWEXVQsnZBwGjDIExi6LdYtomyL0STR44SsG8=";
};
cmakeFlags = [
"-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}"
] ++ lib.optionals (cxxStandard != null) [
"-DCMAKE_CXX_STANDARD=${cxxStandard}"
];
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "An open-source collection of C++ code designed to augment the C++ standard library";
homepage = "https://abseil.io/";
license = licenses.asl20;
platforms = platforms.all;
maintainers = [ maintainers.andersk ];
};
}

View File

@ -17606,6 +17606,7 @@ with pkgs;
abseil-cpp_202111 = callPackage ../development/libraries/abseil-cpp/202111.nix { };
abseil-cpp_202103 = callPackage ../development/libraries/abseil-cpp/202103.nix { };
abseil-cpp_202206 = callPackage ../development/libraries/abseil-cpp/202206.nix { };
abseil-cpp = abseil-cpp_202103;
accountsservice = callPackage ../development/libraries/accountsservice { };