diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-03 16:15:46 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-01-06 14:36:14 +0100 |
commit | 23e277b0dec814768cbaad54f9255d3af342e129 (patch) | |
tree | 2a7954e1aea799c3ba630e07b75bc5d85d3401e1 /pkgs/development/eclipse | |
parent | 48701a3cefc756bbc9e76a3a3c9cf3ded1166eb8 (diff) |
ecj: Fix indentation
Diffstat (limited to 'pkgs/development/eclipse')
-rw-r--r-- | pkgs/development/eclipse/ecj/default.nix | 71 |
1 files changed, 35 insertions, 36 deletions
diff --git a/pkgs/development/eclipse/ecj/default.nix b/pkgs/development/eclipse/ecj/default.nix index ba3e643a4fea..9cc0a778ebcb 100644 --- a/pkgs/development/eclipse/ecj/default.nix +++ b/pkgs/development/eclipse/ecj/default.nix @@ -7,53 +7,52 @@ let javaExec = if isGCJ then "gij" else "java"; javaFlags = if isGCJ then "--cp" else "-cp"; 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"; - }; +stdenv.mkDerivation rec { + name = "ecj-${version}"; - buildInputs = [ unzip ant gcj ]; + src = fetchurl { + url = "http://eclipse.ialto.org/eclipse/downloads/drops/R-${version}-${date}/ecjsrc-${version}.jar"; + sha256 = "0swyysbyfmv068x8q1c5jqpwk5zb4xahg17aypx5rwb660f8fpbm"; + }; - unpackPhase = '' - mkdir "${name}" - cd "${name}" - unzip "$src" - ''; + buildInputs = [ unzip ant gcj ]; + + unpackPhase = '' + mkdir "${name}" + cd "${name}" + unzip "$src" + ''; - # Use whatever compiler Ant knows. - buildPhase = "ant build"; + # Use whatever compiler Ant knows. + buildPhase = "ant build"; - installPhase = '' - mkdir -pv "$out/lib/java" - cp -v *.jar "$out/lib/java" + installPhase = '' + mkdir -pv "$out/lib/java" + cp -v *.jar "$out/lib/java" - mkdir -pv "$out/bin" - cat > "$out/bin/ecj" <<EOF + mkdir -pv "$out/bin" + cat > "$out/bin/ecj" <<EOF #! /bin/sh exec "$(type -P ${javaExec})" ${javaFlags} "$out/lib/java/ecj.jar" org.eclipse.jdt.internal.compiler.batch.Main \$@ EOF - chmod u+x "$out/bin/ecj" - ''; + chmod u+x "$out/bin/ecj" + ''; - meta = { - description = "The Eclipse Compiler for Java (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. - ''; - - homepage = http://www.eclipse.org/jdt/core/index.php; + 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. + ''; - # http://www.eclipse.org/legal/epl-v10.html (free software, copyleft) - license = "EPLv1.0"; + homepage = http://www.eclipse.org/jdt/core/index.php; - maintainers = [ ]; - }; - } + # http://www.eclipse.org/legal/epl-v10.html (free software, copyleft) + license = "EPLv1.0"; + }; +} |