about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2022-09-08 01:25:30 +0200
committerYt <happysalada@proton.me>2022-09-09 11:59:07 -0400
commit08dd3b91ea9751216718b3da1bb8e5386a08178d (patch)
treeb88aff70970620c9f26ade674a7b1156e8a6add6 /nixos
parent6ee982a34eb36b3684c6c5de498ba037d7f64ce4 (diff)
nixos/vector: fix validation for cross compiling
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/logging/vector.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/modules/services/logging/vector.nix b/nixos/modules/services/logging/vector.nix
index c4bd4fe809e4a..ab5ea887acbac 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