From 08dd3b91ea9751216718b3da1bb8e5386a08178d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 8 Sep 2022 01:25:30 +0200 Subject: [PATCH] nixos/vector: fix validation for cross compiling --- nixos/modules/services/logging/vector.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/logging/vector.nix b/nixos/modules/services/logging/vector.nix index c4bd4fe809e4..ab5ea887acba 100644 --- a/nixos/modules/services/logging/vector.nix +++ b/nixos/modules/services/logging/vector.nix @@ -43,8 +43,10 @@ in format = pkgs.formats.toml { }; conf = format.generate "vector.toml" cfg.settings; validateConfig = file: - pkgs.runCommand "validate-vector-conf" { } '' - ${pkgs.vector}/bin/vector validate --no-environment "${file}" + pkgs.runCommand "validate-vector-conf" { + nativeBuildInputs = [ pkgs.buildPackages.vector ]; + } '' + vector validate --no-environment "${file}" ln -s "${file}" "$out" ''; in