From d42fb35713e6908c1f2d7d8f00dc69707e111b49 Mon Sep 17 00:00:00 2001 From: Benjamin Staffin Date: Sun, 9 Oct 2016 14:57:16 -0400 Subject: [PATCH] bazel: Allow linux i686 builds too --- .../tools/build-managers/bazel/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/tools/build-managers/bazel/default.nix b/pkgs/development/tools/build-managers/bazel/default.nix index 10b2feeb9d91..5d57c9b4579a 100644 --- a/pkgs/development/tools/build-managers/bazel/default.nix +++ b/pkgs/development/tools/build-managers/bazel/default.nix @@ -10,7 +10,7 @@ let description = "Build tool that builds code quickly and reliably"; license = licenses.asl20; maintainers = [ maintainers.philandstuff ]; - platforms = [ "x86_64-linux" ]; + platforms = platforms.linux; }; bootstrapEnv = buildFHSUserEnv { @@ -23,7 +23,7 @@ let bazelBinary = stdenv.mkDerivation rec { name = "bazel-${version}"; - + src = fetchFromGitHub { owner = "bazelbuild"; repo = "bazel"; @@ -48,11 +48,11 @@ let export LD_LIBRARY_PATH="${buildTimeLibPath}:$LD_LIBRARY_PATH" ./compile.sh ''; - + buildPhase = '' bazel-bootstrap-env ${buildWrapper} ''; - + installPhase = '' mkdir -p $out/bin cp output/bazel $out/bin/ @@ -60,10 +60,10 @@ let --suffix PATH ":" "${runTimeBinPath}" \ --suffix LD_LIBRARY_PATH ":" "${runTimeLibPath}" ''; - + dontStrip = true; dontPatchELF = true; - + inherit meta; };