From 5d238e45de842e8cc82467adb294e00e399cdbae Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Tue, 11 Jun 2019 21:51:01 +0200 Subject: [PATCH] bazel: run the tests on all supported platforms --- pkgs/development/tools/build-managers/bazel/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/build-managers/bazel/default.nix b/pkgs/development/tools/build-managers/bazel/default.nix index 28a48dead080..aa007eb555e8 100644 --- a/pkgs/development/tools/build-managers/bazel/default.nix +++ b/pkgs/development/tools/build-managers/bazel/default.nix @@ -93,6 +93,8 @@ let # Java toolchain used for the build and tests javaToolchain = "@bazel_tools//tools/jdk:toolchain_host${buildJdkName}"; + platforms = lib.platforms.linux ++ lib.platforms.darwin; + in stdenv.mkDerivation rec { @@ -103,7 +105,7 @@ stdenv.mkDerivation rec { description = "Build tool that builds code quickly and reliably"; license = licenses.asl20; maintainers = [ maintainers.mboes ]; - platforms = platforms.linux ++ platforms.darwin; + inherit platforms; }; # Additional tests that check bazel’s functionality. Execute @@ -115,6 +117,7 @@ stdenv.mkDerivation rec { let runLocal = name: attrs: script: runCommandCC name ({ preferLocalBuild = true; + meta.platforms = platforms; } // attrs) script; # bazel wants to extract itself into $install_dir/install every time it runs,