···1616, tzdata
1717, cmake
1818, perl
1919- # kafka is optional but one of the most used features
2020-, enableKafka ? true
1919+ # nix has a problem with the `?` in the feature list
2020+ # enabling kafka will produce a vector with no features at all
2121+, enableKafka ? false
2122 # TODO investigate adding "api" "api-client" "vrl-cli" and various "vendor-*"
2223 # "disk-buffer" is using leveldb TODO: investigate how useful
2324 # it would be, perhaps only for massive scale?
2425, features ? ([ "sinks" "sources" "transforms" "vrl-cli" ]
2526 # the second feature flag is passed to the rdkafka dependency
2627 # building on linux fails without this feature flag (both x86_64 and AArch64)
2727- ++ lib.optionals enableKafka [ "rdkafka/gssapi-vendored" ]
2828+ ++ lib.optionals enableKafka [ "rdkafka?/gssapi-vendored" ]
2829 ++ lib.optional stdenv.targetPlatform.isUnix "unix")
2930}:
30313132let
3233 pname = "vector";
3333- version = "0.22.3";
3434+ version = "0.24.0";
3435in
3536rustPlatform.buildRustPackage {
3637 inherit pname version;
···3940 owner = "vectordotdev";
4041 repo = pname;
4142 rev = "v${version}";
4242- sha256 = "sha256-62oPttkdahTeMsd9lpd9/tc95kluVJuWxzP94i+gWhA=";
4343+ sha256 = "sha256-kZ6Ek3CagAznyU7yDv96jFk1xCjfF2gvrNYyVTeFuO0=";
4344 };
44454545- cargoSha256 = "sha256-WWX47pbva7ZmPR6hBstJ5VqOwu3mkhhsHK3LHHqQjDE=";
4646+ cargoSha256 = "sha256-4aHMPrawTF9QpoX7cmiPv9ddu0LF008uqBTu0oyan98=";
4647 nativeBuildInputs = [ pkg-config cmake perl ];
4748 buildInputs = [ oniguruma openssl protobuf rdkafka zstd ]
4849 ++ lib.optionals stdenv.isDarwin [ Security libiconv coreutils CoreServices ];