diff --git a/pkgs/tools/misc/vector/default.nix b/pkgs/tools/misc/vector/default.nix index 19b25edf65d2..cdb6f42db918 100644 --- a/pkgs/tools/misc/vector/default.nix +++ b/pkgs/tools/misc/vector/default.nix @@ -22,6 +22,7 @@ git, nixosTests, nix-update-script, + darwin, }: let @@ -51,13 +52,16 @@ rustPlatform.buildRustPackage { }; }; - nativeBuildInputs = [ - pkg-config - cmake - perl - git - rustPlatform.bindgenHook - ]; + nativeBuildInputs = + [ + pkg-config + cmake + perl + git + rustPlatform.bindgenHook + ] + # Provides the mig command used by the build scripts + ++ lib.optional stdenv.hostPlatform.isDarwin darwin.bootstrap_cmds; buildInputs = [ oniguruma