{ stdenv, fetchurl, unzip, ant, jdk }: let version = "3.7.2"; date = "201202080800"; in stdenv.mkDerivation rec { name = "ecj-${version}"; src = fetchurl { url = "http://eclipse.ialto.org/eclipse/downloads/drops/R-${version}-${date}/ecjsrc-${version}.jar"; sha256 = "0swyysbyfmv068x8q1c5jqpwk5zb4xahg17aypx5rwb660f8fpbm"; }; buildInputs = [ unzip ant jdk ]; unpackPhase = '' mkdir "${name}" cd "${name}" unzip "$src" ''; # Use whatever compiler Ant knows. buildPhase = "ant build"; installPhase = '' mkdir -pv $out/lib/java cp -v *.jar $out/lib/java mkdir -pv $out/bin cat > $out/bin/ecj <