mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
nixos/vector: fix validation for cross compiling
This commit is contained in:
parent
6ee982a34e
commit
08dd3b91ea
@ -43,8 +43,10 @@ in
|
|||||||
format = pkgs.formats.toml { };
|
format = pkgs.formats.toml { };
|
||||||
conf = format.generate "vector.toml" cfg.settings;
|
conf = format.generate "vector.toml" cfg.settings;
|
||||||
validateConfig = file:
|
validateConfig = file:
|
||||||
pkgs.runCommand "validate-vector-conf" { } ''
|
pkgs.runCommand "validate-vector-conf" {
|
||||||
${pkgs.vector}/bin/vector validate --no-environment "${file}"
|
nativeBuildInputs = [ pkgs.buildPackages.vector ];
|
||||||
|
} ''
|
||||||
|
vector validate --no-environment "${file}"
|
||||||
ln -s "${file}" "$out"
|
ln -s "${file}" "$out"
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user