about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorAlexander Rodin <rodin.alexander@gmail.com>2019-12-16 13:55:49 +0000
committerAustin Seipp <aseipp@pobox.com>2019-12-19 20:08:51 -0600
commitdb3fdd01b03385160cf2ec8ac6394dcd5904d488 (patch)
tree7c65713fe6570147fdfe4f4f788a7de9e756a123 /pkgs
parentaa54998817ed42bda6ab7d9911fe5649404e68f8 (diff)
downloadnixlib-db3fdd01b03385160cf2ec8ac6394dcd5904d488.tar
nixlib-db3fdd01b03385160cf2ec8ac6394dcd5904d488.tar.gz
nixlib-db3fdd01b03385160cf2ec8ac6394dcd5904d488.tar.bz2
nixlib-db3fdd01b03385160cf2ec8ac6394dcd5904d488.tar.lz
nixlib-db3fdd01b03385160cf2ec8ac6394dcd5904d488.tar.xz
nixlib-db3fdd01b03385160cf2ec8ac6394dcd5904d488.tar.zst
nixlib-db3fdd01b03385160cf2ec8ac6394dcd5904d488.zip
vector: enable rdkafka feature
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/vector/default.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/tools/misc/vector/default.nix b/pkgs/tools/misc/vector/default.nix
index a304873ca1e1..3cf6b95ab433 100644
--- a/pkgs/tools/misc/vector/default.nix
+++ b/pkgs/tools/misc/vector/default.nix
@@ -1,11 +1,11 @@
 { stdenv, lib, fetchFromGitHub, rustPlatform
 , openssl, pkgconfig, protobuf
-, Security, libiconv
+, Security, libiconv, cmake
 
 , features ?
     (if stdenv.isAarch64
-     then [ "shiplift/unix-socket" "jemallocator" ]
-     else [ "leveldb" "leveldb/leveldb-sys-2" "shiplift/unix-socket" "jemallocator" ])
+     then [ "shiplift/unix-socket" "jemallocator" "rdkafka" "rdkafka/cmake_build" ]
+     else [ "leveldb" "leveldb/leveldb-sys-2" "shiplift/unix-socket" "jemallocator" "rdkafka" "rdkafka/cmake_build" ])
 }:
 
 rustPlatform.buildRustPackage rec {
@@ -20,14 +20,13 @@ rustPlatform.buildRustPackage rec {
   };
 
   cargoSha256 = "1akyzrscc6pv7ggb1kna05vvxhfzrf1b4kji4bah1ry3yyqxdjsj";
-  buildInputs = [ openssl pkgconfig protobuf ]
+  buildInputs = [ openssl pkgconfig protobuf cmake ]
                 ++ stdenv.lib.optional stdenv.isDarwin [ Security libiconv ];
 
   # needed for internal protobuf c wrapper library
   PROTOC="${protobuf}/bin/protoc";
   PROTOC_INCLUDE="${protobuf}/include";
 
-  # rdkafka fails to build, for some reason...
   cargoBuildFlags = [ "--no-default-features" "--features" "${lib.concatStringsSep "," features}" ];
   checkPhase = ":"; # skip tests, too -- they don't respect the rdkafka flag...