3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/abseil-cpp/default.nix

29 lines
745 B
Nix
Raw Normal View History

2021-03-20 04:20:00 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, static ? stdenv.hostPlatform.isStatic }:
stdenv.mkDerivation rec {
pname = "abseil-cpp";
2021-02-13 19:58:22 +00:00
version = "20200923.3";
src = fetchFromGitHub {
owner = "abseil";
repo = "abseil-cpp";
rev = version;
2021-02-13 19:58:22 +00:00
sha256 = "1p4djhm1f011ficbjjxx3n8428p8481p20j4glpaawnpsi362hkl";
};
2021-02-13 19:58:22 +00:00
cmakeFlags = [
"-DCMAKE_CXX_STANDARD=17"
2021-03-20 04:20:00 +00:00
"-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}"
2021-02-13 19:58:22 +00:00
];
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 ];
};
}