git.iko.soy/typeable/nixpkgs
on master help sign in
bazel: Allow linux i686 builds too
commitd42fb35713e6908c1f2d7d8f00dc69707e111b49 authorBenjamin Staffin <bstaffin@fitbit.com> dateSun 9 Oct 2016, 14:57 (10 years ago) parent3c39d75
1 file changed+6−6
pkgs/development/tools/build-managers/bazel/default.nix+6−6
pkgs/development/tools/build-managers/bazel/default.nix+6−6
@@ -10,7 +10,7 @@ let
1010 description = "Build tool that builds code quickly and reliably";
1111 license = licenses.asl20;
1212 maintainers = [ maintainers.philandstuff ];
13− platforms = [ "x86_64-linux" ];
13+ platforms = platforms.linux;
1414 };
1515
1616 bootstrapEnv = buildFHSUserEnv {
@@ -23,7 +23,7 @@ let
2323
2424 bazelBinary = stdenv.mkDerivation rec {
2525 name = "bazel-${version}";
26−
26+
2727 src = fetchFromGitHub {
2828 owner = "bazelbuild";
2929 repo = "bazel";
@@ -48,11 +48,11 @@ let
4848 export LD_LIBRARY_PATH="${buildTimeLibPath}:$LD_LIBRARY_PATH"
4949 ./compile.sh
5050 '';
51−
51+
5252 buildPhase = ''
5353 bazel-bootstrap-env ${buildWrapper}
5454 '';
55−
55+
5656 installPhase = ''
5757 mkdir -p $out/bin
5858 cp output/bazel $out/bin/
@@ -60,10 +60,10 @@ let
6060 --suffix PATH ":" "${runTimeBinPath}" \
6161 --suffix LD_LIBRARY_PATH ":" "${runTimeLibPath}"
6262 '';
63−
63+
6464 dontStrip = true;
6565 dontPatchELF = true;
66−
66+
6767 inherit meta;
6868 };
6969