diff --git a/tests/BUILD.bazel b/tests/BUILD.bazel index 6c80584fd..5b5e06e56 100644 --- a/tests/BUILD.bazel +++ b/tests/BUILD.bazel @@ -128,7 +128,12 @@ sh_test( data = [ "//nixpkgs:srcs", "//tests/invalid_nixpkgs_package:srcs", - "@busybox_static//:bin", "@nix-unstable//:bin", + ] + select({ + "@platforms//os:linux": ["@busybox_static//:bin"], + "//conditions:default": [], + }), + target_compatible_with = [ + "@platforms//os:linux", ], )