vector: 0.20.1 -> 0.21.0
This commit is contained in:
parent
163f66a804
commit
b01b9080bd
|
@ -21,16 +21,16 @@
|
||||||
# TODO investigate adding "api" "api-client" "vrl-cli" and various "vendor-*"
|
# TODO investigate adding "api" "api-client" "vrl-cli" and various "vendor-*"
|
||||||
# "disk-buffer" is using leveldb TODO: investigate how useful
|
# "disk-buffer" is using leveldb TODO: investigate how useful
|
||||||
# it would be, perhaps only for massive scale?
|
# it would be, perhaps only for massive scale?
|
||||||
, features ? ([ "sinks" "sources" "transforms" ]
|
, features ? ([ "sinks" "sources" "transforms" "vrl-cli" ]
|
||||||
# the second feature flag is passed to the rdkafka dependency
|
# the second feature flag is passed to the rdkafka dependency
|
||||||
# building on linux fails without this feature flag (both x86_64 and AArch64)
|
# building on linux fails without this feature flag (both x86_64 and AArch64)
|
||||||
++ lib.optionals enableKafka [ "rdkafka-plain" "rdkafka/dynamic_linking" ]
|
++ lib.optionals enableKafka [ "rdkafka/gssapi-vendored" ]
|
||||||
++ lib.optional stdenv.targetPlatform.isUnix "unix")
|
++ lib.optional stdenv.targetPlatform.isUnix "unix")
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "vector";
|
pname = "vector";
|
||||||
version = "0.20.1";
|
version = "0.21.0";
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage {
|
rustPlatform.buildRustPackage {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
@ -39,10 +39,10 @@ rustPlatform.buildRustPackage {
|
||||||
owner = "timberio";
|
owner = "timberio";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-0xC6CpmSTRt7zj6RHqtjbMXWEiMUOdIymWVGI8Js+70=";
|
sha256 = "sha256-ZhOtrv63ZhG3OEWLTk+VdZr6Y6f9KvyCJvAKWck7B7o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-NLMyE9+iYFWuMmL50TeLZVvlHkIDaSZYJwXK4ykGrb8=";
|
cargoSha256 = "sha256-VGB+ljojXGrQmcN0AT90hFk9h5nwjDTtzGpWmItw9x4=";
|
||||||
nativeBuildInputs = [ pkg-config cmake perl ];
|
nativeBuildInputs = [ pkg-config cmake perl ];
|
||||||
buildInputs = [ oniguruma openssl protobuf rdkafka zstd ]
|
buildInputs = [ oniguruma openssl protobuf rdkafka zstd ]
|
||||||
++ lib.optionals stdenv.isDarwin [ Security libiconv coreutils CoreServices ];
|
++ lib.optionals stdenv.isDarwin [ Security libiconv coreutils CoreServices ];
|
||||||
|
@ -55,6 +55,9 @@ rustPlatform.buildRustPackage {
|
||||||
|
|
||||||
TZDIR = "${tzdata}/share/zoneinfo";
|
TZDIR = "${tzdata}/share/zoneinfo";
|
||||||
|
|
||||||
|
# needed to dynamically link rdkafka
|
||||||
|
CARGO_FEATURE_DYNAMIC_LINKING=1;
|
||||||
|
|
||||||
buildNoDefaultFeatures = true;
|
buildNoDefaultFeatures = true;
|
||||||
buildFeatures = features;
|
buildFeatures = features;
|
||||||
|
|
||||||
|
@ -105,5 +108,6 @@ rustPlatform.buildRustPackage {
|
||||||
homepage = "https://github.com/timberio/vector";
|
homepage = "https://github.com/timberio/vector";
|
||||||
license = with licenses; [ asl20 ];
|
license = with licenses; [ asl20 ];
|
||||||
maintainers = with maintainers; [ thoughtpolice happysalada ];
|
maintainers = with maintainers; [ thoughtpolice happysalada ];
|
||||||
|
platforms = with platforms; linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue