ecj: Fix indentation
This commit is contained in:
parent
48701a3cef
commit
23e277b0de
@ -7,53 +7,52 @@ let
|
|||||||
javaExec = if isGCJ then "gij" else "java";
|
javaExec = if isGCJ then "gij" else "java";
|
||||||
javaFlags = if isGCJ then "--cp" else "-cp";
|
javaFlags = if isGCJ then "--cp" else "-cp";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "ecj-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
stdenv.mkDerivation rec {
|
||||||
url = "http://eclipse.ialto.org/eclipse/downloads/drops/R-${version}-${date}/ecjsrc-${version}.jar";
|
name = "ecj-${version}";
|
||||||
sha256 = "0swyysbyfmv068x8q1c5jqpwk5zb4xahg17aypx5rwb660f8fpbm";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ unzip ant gcj ];
|
src = fetchurl {
|
||||||
|
url = "http://eclipse.ialto.org/eclipse/downloads/drops/R-${version}-${date}/ecjsrc-${version}.jar";
|
||||||
|
sha256 = "0swyysbyfmv068x8q1c5jqpwk5zb4xahg17aypx5rwb660f8fpbm";
|
||||||
|
};
|
||||||
|
|
||||||
unpackPhase = ''
|
buildInputs = [ unzip ant gcj ];
|
||||||
mkdir "${name}"
|
|
||||||
cd "${name}"
|
|
||||||
unzip "$src"
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Use whatever compiler Ant knows.
|
unpackPhase = ''
|
||||||
buildPhase = "ant build";
|
mkdir "${name}"
|
||||||
|
cd "${name}"
|
||||||
|
unzip "$src"
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
# Use whatever compiler Ant knows.
|
||||||
mkdir -pv "$out/lib/java"
|
buildPhase = "ant build";
|
||||||
cp -v *.jar "$out/lib/java"
|
|
||||||
|
|
||||||
mkdir -pv "$out/bin"
|
installPhase = ''
|
||||||
cat > "$out/bin/ecj" <<EOF
|
mkdir -pv "$out/lib/java"
|
||||||
|
cp -v *.jar "$out/lib/java"
|
||||||
|
|
||||||
|
mkdir -pv "$out/bin"
|
||||||
|
cat > "$out/bin/ecj" <<EOF
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
exec "$(type -P ${javaExec})" ${javaFlags} "$out/lib/java/ecj.jar" org.eclipse.jdt.internal.compiler.batch.Main \$@
|
exec "$(type -P ${javaExec})" ${javaFlags} "$out/lib/java/ecj.jar" org.eclipse.jdt.internal.compiler.batch.Main \$@
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod u+x "$out/bin/ecj"
|
chmod u+x "$out/bin/ecj"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "The Eclipse Compiler for Java (ECJ)";
|
||||||
|
|
||||||
|
longDescription = ''
|
||||||
|
ECJ is an incremental Java compiler. Implemented as an Eclipse
|
||||||
|
builder, it is based on technology evolved from VisualAge for Java
|
||||||
|
compiler. In particular, it allows users to run and debug code which
|
||||||
|
still contains unresolved errors.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
homepage = http://www.eclipse.org/jdt/core/index.php;
|
||||||
description = "The Eclipse Compiler for Java (ECJ)";
|
|
||||||
|
|
||||||
longDescription = ''
|
# http://www.eclipse.org/legal/epl-v10.html (free software, copyleft)
|
||||||
ECJ is an incremental Java compiler. Implemented as an Eclipse
|
license = "EPLv1.0";
|
||||||
builder, it is based on technology evolved from VisualAge for Java
|
};
|
||||||
compiler. In particular, it allows users to run and debug code which
|
}
|
||||||
still contains unresolved errors.
|
|
||||||
'';
|
|
||||||
|
|
||||||
homepage = http://www.eclipse.org/jdt/core/index.php;
|
|
||||||
|
|
||||||
# http://www.eclipse.org/legal/epl-v10.html (free software, copyleft)
|
|
||||||
license = "EPLv1.0";
|
|
||||||
|
|
||||||
maintainers = [ ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user