From 8b41b993e033c0b11cd96e22a61f33fc29d29fdf Mon Sep 17 00:00:00 2001 From: Patsakula Nikita Date: Mon, 6 Jun 2022 13:30:32 +0300 Subject: [PATCH 1/2] cassandra-cpp-driver: init at 2.16.2 --- .../cassandra-cpp-driver/default.nix | 36 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/libraries/cassandra-cpp-driver/default.nix diff --git a/pkgs/development/libraries/cassandra-cpp-driver/default.nix b/pkgs/development/libraries/cassandra-cpp-driver/default.nix new file mode 100644 index 000000000000..ac2fac820ffd --- /dev/null +++ b/pkgs/development/libraries/cassandra-cpp-driver/default.nix @@ -0,0 +1,36 @@ +{ fetchFromGitHub, + lib, stdenv, + cmake, zlib, libuv, openssl, + examples ? false +}: stdenv.mkDerivation rec { + pname = "cassandra-cpp-driver"; + version = "2.16.2"; + + src = fetchFromGitHub { + owner = "datastax"; + repo = "cpp-driver"; + rev = "refs/tags/${version}"; + sha256 = "sha256-NAvaRLhEvFjSmXcyM039wLC6IfLws2rkeRpbE5eL/rQ="; + }; + + LIBUV_ROOT_DIR = "${libuv}/"; + nativeBuildInputs = [ cmake ]; + buildInputs = [ zlib libuv openssl.dev ]; + + cmakeFlags = lib.attrsets.mapAttrsToList + (name: value: "-DCASS_BUILD_${name}:BOOL=${if value then "ON" else "OFF"}") { + EXAMPLES = examples; + }; + + meta = with lib; { + description = "DataStax CPP cassandra driver"; + longDescription = '' + A modern, feature-rich and highly tunable C/C++ client + library for Apache Cassandra 2.1+ using exclusively Cassandra’s + binary protocol and Cassandra Query Language v3. + ''; + license = with licenses; [ asl20 ]; + platforms = platforms.x86_64; + homepage = "https://docs.datastax.com/en/developer/cpp-driver/"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fbe82143c24e..e3bab9bbbd24 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21612,6 +21612,8 @@ with pkgs; }; cassandra = cassandra_3_11; + cassandra-cpp-driver = callPackage ../development/libraries/cassandra-cpp-driver/default.nix { }; + apache-jena = callPackage ../servers/nosql/apache-jena/binary.nix { java = jre; }; From ac769bb1580089aaa5f21de9ff1f1bf6028928cf Mon Sep 17 00:00:00 2001 From: Patsakula Nikita Date: Mon, 6 Jun 2022 16:28:54 +0300 Subject: [PATCH 2/2] maintainers: add npatsakula --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/development/libraries/cassandra-cpp-driver/default.nix | 1 + 2 files changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index b4c4029925f7..5d0cd4ee4cb7 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14784,4 +14784,10 @@ github = "jali-clarke"; githubId = 17733984; }; + npatsakula = { + email = "nikita.patsakula@gmail.com"; + name = "Patsakula Nikita"; + github = "npatsakula"; + githubId = 23001619; + }; } diff --git a/pkgs/development/libraries/cassandra-cpp-driver/default.nix b/pkgs/development/libraries/cassandra-cpp-driver/default.nix index ac2fac820ffd..fb31f1e50abb 100644 --- a/pkgs/development/libraries/cassandra-cpp-driver/default.nix +++ b/pkgs/development/libraries/cassandra-cpp-driver/default.nix @@ -32,5 +32,6 @@ license = with licenses; [ asl20 ]; platforms = platforms.x86_64; homepage = "https://docs.datastax.com/en/developer/cpp-driver/"; + maintainers = [ maintainers.npatsakula ]; }; }