git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19400 from benley/bazel-linux-i686

bazel: Allow linux i686 builds too

commite3ed2a5df9c37dc6bcf3eaa375c3aabc6e9b55bb authorJörg Thalheim <joerg@higgsboson.tk> dateSun 9 Oct 2016, 21:36 (10 years ago) parentbb983fbd42fb35
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