about summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorTomas Drtina <tdrtina-ext@arista.com>2023-05-11 14:55:02 +0200
committerYt <happysalada@tuta.io>2023-06-20 07:30:17 -0400
commit7e7e848d4a8d0f15d37c4eed9cba74caf6fd2e86 (patch)
tree617c873685c2416c502e5b29496e15edf12e4eb3 /pkgs/development/libraries
parente8e84fc97c16756a2ce44eb8ee0f9597e143deaa (diff)
abseil-cpp_202301: init at 20230125.3
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/abseil-cpp/202301.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/libraries/abseil-cpp/202301.nix b/pkgs/development/libraries/abseil-cpp/202301.nix
new file mode 100644
index 0000000000000..a1c42c5df4b4f
--- /dev/null
+++ b/pkgs/development/libraries/abseil-cpp/202301.nix
@@ -0,0 +1,35 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cmake
+, static ? stdenv.hostPlatform.isStatic
+, cxxStandard ? null
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "abseil-cpp";
+  version = "20230125.3";
+
+  src = fetchFromGitHub {
+    owner = "abseil";
+    repo = "abseil-cpp";
+    rev = "refs/tags/${finalAttrs.version}";
+    hash = "sha256-PLoI7ix+reUqkZ947kWzls8lujYqWXk9A9a55UcfahI=";
+  };
+
+  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 ];
+  };
+})