ecj: require jdk7 instead of jdk

The ecj build fails in Java 8 due to backwards incompatible changes in
the `javax.lang.model` namespace so with this change we specifically ask
for a JDK for Java 7.

+3 -3
+3 -3
pkgs/development/eclipse/ecj/default.nix
··· 1 - { stdenv, fetchurl, unzip, ant, jdk, makeWrapper }: 1 + { stdenv, fetchurl, unzip, ant, jdk7, makeWrapper }: 2 2 3 3 let 4 4 version = "3.7.2"; ··· 13 13 sha256 = "0swyysbyfmv068x8q1c5jqpwk5zb4xahg17aypx5rwb660f8fpbm"; 14 14 }; 15 15 16 - buildInputs = [ unzip ant jdk makeWrapper ]; 16 + buildInputs = [ unzip ant jdk7 makeWrapper ]; 17 17 18 18 unpackPhase = '' 19 19 mkdir "${name}" ··· 29 29 cp -v *.jar $out/share/java 30 30 31 31 mkdir -pv $out/bin 32 - makeWrapper ${jdk.jre}/bin/java $out/bin/ecj \ 32 + makeWrapper ${jdk7.jre}/bin/java $out/bin/ecj \ 33 33 --add-flags "-cp $out/share/java/ecj.jar org.eclipse.jdt.internal.compiler.batch.Main" 34 34 35 35 # Add a setup hook that causes Ant to use the ECJ.