mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
Add ECJ.
svn path=/nixpkgs/trunk/; revision=17352
This commit is contained in:
parent
7735b54340
commit
bf0f4deabb
48
pkgs/development/compilers/ecj/default.nix
Normal file
48
pkgs/development/compilers/ecj/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ fetchurl, stdenv, unzip, ant }:
|
||||
|
||||
let
|
||||
version = "3.5";
|
||||
date = "200906111540";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ecj-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://eclipse.ialto.org/eclipse/downloads/drops/R-${version}-${date}/ecjsrc-${version}.zip";
|
||||
sha256 = "0f5xfi0458w31dr4pkvrjh1f9h2hbn7ssq9gnnma6gznj45jvy7k";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ant ];
|
||||
|
||||
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"
|
||||
'';
|
||||
|
||||
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;
|
||||
|
||||
# http://www.eclipse.org/legal/epl-v10.html (free software, copyleft)
|
||||
license = "EPLv1.0";
|
||||
|
||||
maintainers = [ stdenv.lib.maintainers.ludo ];
|
||||
};
|
||||
}
|
|
@ -654,6 +654,10 @@ let
|
|||
inherit fetchurl stdenv cdrkit m4;
|
||||
};
|
||||
|
||||
ecj = import ../development/compilers/ecj {
|
||||
inherit fetchurl stdenv unzip ant;
|
||||
};
|
||||
|
||||
enblendenfuse = import ../tools/graphics/enblend-enfuse {
|
||||
inherit fetchurl stdenv libtiff libpng lcms libxmi boost;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue