mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
abseil-cpp: init 20211102.0
This commit is contained in:
parent
39669ea2b6
commit
a0da54e4d1
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
||||
owner = "abseil";
|
||||
repo = "abseil-cpp";
|
||||
rev = version;
|
||||
sha256 = "0g9rbhk3mwjdfxk7cscd04vm8fphd5flz9yykpgvyy1nwa34zk3x";
|
||||
sha256 = "sha256-fcxPhuI2eL/fnd6nT11p8DpUNwGNaXZmd03yOiZcOT0=";
|
||||
};
|
||||
|
||||
patches = [
|
36
pkgs/development/libraries/abseil-cpp/202111.nix
Normal file
36
pkgs/development/libraries/abseil-cpp/202111.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, cmake
|
||||
, static ? stdenv.hostPlatform.isStatic
|
||||
, cxxStandard ? null
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "abseil-cpp";
|
||||
version = "20211102.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "abseil";
|
||||
repo = "abseil-cpp";
|
||||
rev = version;
|
||||
sha256 = "sha256-sSXT6D4JSrk3dA7kVaxfKkzOMBpqXQb0WbMYWG+nGwk=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -15808,7 +15808,9 @@ with pkgs;
|
||||
|
||||
aalib = callPackage ../development/libraries/aalib { };
|
||||
|
||||
abseil-cpp = callPackage ../development/libraries/abseil-cpp { };
|
||||
abseil-cpp_202111 = callPackage ../development/libraries/abseil-cpp/202111.nix { };
|
||||
abseil-cpp_202103 = callPackage ../development/libraries/abseil-cpp/202103.nix { };
|
||||
abseil-cpp = abseil-cpp_202103;
|
||||
|
||||
accountsservice = callPackage ../development/libraries/accountsservice { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user