vector: 0.49.0 -> 0.50.0 (#445623)

This commit is contained in:
Yt
2025-09-24 21:34:17 +00:00
committed by GitHub
+7 -22
View File
@@ -24,21 +24,18 @@
zlib,
}:
let
rustPlatform.buildRustPackage (finalAttrs: {
pname = "vector";
version = "0.49.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
version = "0.50.0";
src = fetchFromGitHub {
owner = "vectordotdev";
repo = "vector";
rev = "v${version}";
hash = "sha256-sow1BFJgwOOajJ7dTmoUNJ3OpI9/73Uigrcb1CIBOE8=";
tag = "v${finalAttrs.version}";
hash = "sha256-vyRvBCpWOKeI7Y+RbxCdVCAF45vWjC7ZD4PCS0QloPg=";
};
cargoHash = "sha256-a7923ubtads5ZLjc+27RHtPFKmgv0aMOxiSrvIVr5VA=";
cargoHash = "sha256-4Nsq5Ta08wlHuevOfrr1mPi+qY+49q9S+AtbY35sfEM=";
nativeBuildInputs = [
pkg-config
@@ -64,19 +61,6 @@ rustPlatform.buildRustPackage {
zlib
];
patches = [
(fetchpatch {
name = "1.89-mismatched-lifetime-syntaxes.patch";
url = "https://patch-diff.githubusercontent.com/raw/vectordotdev/vector/pull/23645.patch";
hash = "sha256-2ADlF4/Z1uR3LR6608lA4tseh+MnHb097PACD/Nq6/0=";
})
];
# Rust 1.80.0 introduced the unexepcted_cfgs lint, which requires crates to allowlist custom cfg options that they inspect.
# Upstream is working on fixing this in https://github.com/vectordotdev/vector/pull/20949, but silencing the lint lets us build again until then.
# TODO remove when upgrading Vector
RUSTFLAGS = "--allow dependency_on_unit_never_type_fallback --allow dead_code";
# Without this, we get SIGSEGV failure
RUST_MIN_STACK = 33554432;
@@ -138,6 +122,7 @@ rustPlatform.buildRustPackage {
meta = with lib; {
description = "High-performance observability data pipeline";
homepage = "https://github.com/vectordotdev/vector";
changelog = "https://github.com/vectordotdev/vector/releases/tag/v${finalAttrs.version}";
license = licenses.mpl20;
maintainers = with maintainers; [
thoughtpolice
@@ -146,4 +131,4 @@ rustPlatform.buildRustPackage {
platforms = with platforms; all;
mainProgram = "vector";
};
}
})