vector: fix build against rust 1.66
This commit is contained in:
parent
26d95bda2f
commit
108f65bbd6
2 changed files with 18 additions and 0 deletions
|
@ -45,6 +45,11 @@ rustPlatform.buildRustPackage {
|
|||
sha256 = pinData.sha256;
|
||||
};
|
||||
|
||||
patches = [
|
||||
# replace with https://github.com/vectordotdev/vector/pull/15093 when ready
|
||||
./fix-for-rust-1.66.diff
|
||||
];
|
||||
|
||||
cargoSha256 = pinData.cargoSha256;
|
||||
nativeBuildInputs = [ pkg-config cmake perl ];
|
||||
buildInputs = [ oniguruma openssl protobuf rdkafka zstd ]
|
||||
|
|
13
pkgs/tools/misc/vector/fix-for-rust-1.66.diff
Normal file
13
pkgs/tools/misc/vector/fix-for-rust-1.66.diff
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/sources/aws_kinesis_firehose/filters.rs b/src/sources/aws_kinesis_firehose/filters.rs
|
||||
index ac33682..fe65ed4 100644
|
||||
--- a/src/sources/aws_kinesis_firehose/filters.rs
|
||||
+++ b/src/sources/aws_kinesis_firehose/filters.rs
|
||||
@@ -28,7 +28,7 @@ pub fn firehose(
|
||||
acknowledgements: bool,
|
||||
out: SourceSender,
|
||||
log_namespace: LogNamespace,
|
||||
-) -> impl Filter<Extract = impl warp::Reply, Error = Infallible> + Clone {
|
||||
+) -> impl Filter<Extract = (impl warp::Reply,), Error = Infallible> + Clone {
|
||||
let bytes_received = register!(BytesReceived::from(Protocol::HTTP));
|
||||
let context = handlers::Context {
|
||||
compression: record_compression,
|
Loading…
Reference in a new issue