about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/cassandra-cpp-driver/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/cassandra-cpp-driver/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/cassandra-cpp-driver/default.nix20
1 files changed, 12 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/development/libraries/cassandra-cpp-driver/default.nix b/nixpkgs/pkgs/development/libraries/cassandra-cpp-driver/default.nix
index fb31f1e50abb..f9f823bf0ae1 100644
--- a/nixpkgs/pkgs/development/libraries/cassandra-cpp-driver/default.nix
+++ b/nixpkgs/pkgs/development/libraries/cassandra-cpp-driver/default.nix
@@ -1,7 +1,12 @@
-{ fetchFromGitHub,
-  lib, stdenv,
-  cmake, zlib, libuv, openssl,
-  examples ? false
+{ fetchFromGitHub
+, lib
+, stdenv
+, cmake
+, zlib
+, libuv
+, openssl
+, pkg-config
+, examples ? false
 }: stdenv.mkDerivation rec {
     pname = "cassandra-cpp-driver";
     version = "2.16.2";
@@ -13,14 +18,13 @@
       sha256 = "sha256-NAvaRLhEvFjSmXcyM039wLC6IfLws2rkeRpbE5eL/rQ=";
     };
 
-    LIBUV_ROOT_DIR = "${libuv}/";
-    nativeBuildInputs = [ cmake ];
+    nativeBuildInputs = [ cmake pkg-config ];
     buildInputs = [ zlib libuv openssl.dev ];
 
-    cmakeFlags = lib.attrsets.mapAttrsToList
+    cmakeFlags = (lib.attrsets.mapAttrsToList
       (name: value: "-DCASS_BUILD_${name}:BOOL=${if value then "ON" else "OFF"}") {
         EXAMPLES = examples;
-      };
+      }) ++ [ "-DLIBUV_INCLUDE_DIR=${lib.getDev libuv}/include" ];
 
     meta = with lib; {
       description = "DataStax CPP cassandra driver";