From 8da4a4099964afb6d2c410a3cab6d5ac86addb7b Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Wed, 28 Jan 2026 16:17:21 +0000 Subject: [PATCH 1/2] =?UTF-8?q?vector:=200.52.0=20=E2=86=92=200.53.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/by-name/ve/vector/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ve/vector/package.nix b/pkgs/by-name/ve/vector/package.nix index a6f5f79f5f4e..e1e46048e2fc 100644 --- a/pkgs/by-name/ve/vector/package.nix +++ b/pkgs/by-name/ve/vector/package.nix @@ -26,16 +26,16 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "vector"; - version = "0.52.0"; + version = "0.53.0"; src = fetchFromGitHub { owner = "vectordotdev"; repo = "vector"; tag = "v${finalAttrs.version}"; - hash = "sha256-jwEJ+myovZYcohvxH1VvvOW8xok3HSLvhtMsLC2M3KY="; + hash = "sha256-OFybPI2oppntYBEklJtdEhImZc/m4oaSSWylr2hHUjA="; }; - cargoHash = "sha256-EfgDL5asygFqr8pVcTR9BsYU3fcG28xhrCn5nCkVfcA="; + cargoHash = "sha256-Xuff8ZanFCtvitNYnOwCyd0UYjrhrP8UglJqbpScGVM="; nativeBuildInputs = [ pkg-config From 980cec0f037ecc55db5b6a504a26c78d873b8f61 Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Wed, 28 Jan 2026 16:13:14 +0000 Subject: [PATCH 2/2] vector: Install shell completions Reference: https://github.com/vectordotdev/vector/issues/24513 --- pkgs/by-name/ve/vector/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/ve/vector/package.nix b/pkgs/by-name/ve/vector/package.nix index e1e46048e2fc..1d2cbf910a65 100644 --- a/pkgs/by-name/ve/vector/package.nix +++ b/pkgs/by-name/ve/vector/package.nix @@ -2,6 +2,7 @@ stdenv, lib, fetchFromGitHub, + installShellFiles, rustPlatform, pkg-config, openssl, @@ -43,6 +44,7 @@ rustPlatform.buildRustPackage (finalAttrs: { perl git rustPlatform.bindgenHook + installShellFiles ] # Provides the mig command used by the build scripts ++ lib.optional stdenv.hostPlatform.isDarwin darwin.bootstrap_cmds; @@ -116,6 +118,12 @@ rustPlatform.buildRustPackage (finalAttrs: { --replace-fail "#[tokio::test]" "" ''; + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' + for shell in bash fish zsh; do + installShellCompletion --cmd vector --$shell <($out/bin/vector completion $shell) + done + ''; + nativeInstallCheckInputs = [ versionCheckHook ];