summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers
diff options
context:
space:
mode:
authorBenjamin Staffin <bstaffin@fitbit.com>2016-10-09 14:57:16 -0400
committerBenjamin Staffin <bstaffin@fitbit.com>2016-10-09 15:18:29 -0400
commitd42fb35713e6908c1f2d7d8f00dc69707e111b49 (patch)
tree2b2ad1e016d2489c4ff87725f686e92ed292d7cd /pkgs/development/tools/build-managers
parent3c39d75543f09106ff23d4bcdbe2040ecb231aa2 (diff)
downloadnixlib-d42fb35713e6908c1f2d7d8f00dc69707e111b49.tar
nixlib-d42fb35713e6908c1f2d7d8f00dc69707e111b49.tar.gz
nixlib-d42fb35713e6908c1f2d7d8f00dc69707e111b49.tar.bz2
nixlib-d42fb35713e6908c1f2d7d8f00dc69707e111b49.tar.lz
nixlib-d42fb35713e6908c1f2d7d8f00dc69707e111b49.tar.xz
nixlib-d42fb35713e6908c1f2d7d8f00dc69707e111b49.tar.zst
nixlib-d42fb35713e6908c1f2d7d8f00dc69707e111b49.zip
bazel: Allow linux i686 builds too
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rw-r--r--pkgs/development/tools/build-managers/bazel/default.nix12
1 files 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;
   };