at 17.09-beta 2.0 kB view raw
1{ fetchurl, stdenv, javac, jvm, antlr, pkgconfig, gtk2, gconf, ecj }: 2 3stdenv.mkDerivation rec { 4 name = "classpath-0.99"; 5 6 src = fetchurl { 7 url = "mirror://gnu/classpath/${name}.tar.gz"; 8 sha256 = "1j7cby4k66f1nvckm48xcmh352b1d1b33qk7l6hi7dp9i9zjjagr"; 9 }; 10 11 patches = [ ./missing-casts.patch ]; 12 13 buildInputs = [ javac jvm antlr pkgconfig gtk2 gconf ecj ]; 14 15 configurePhase = '' 16 # GCJ tries to compile all of Classpath during the `configure' run when 17 # trying to build in the source tree (see 18 # http://www.mail-archive.com/classpath@gnu.org/msg15079.html), thus we 19 # build out-of-tree. 20 mkdir ../build 21 cd ../build 22 echo "building in \`$PWD'" 23 24 ../${name}/configure --prefix="$out" \ 25 --enable-fast-install --disable-dependency-tracking \ 26 ${configureFlags} 27 ''; 28 29 /* Plug-in support requires Xulrunner and all that. Maybe someday, 30 optionally. 31 32 Compilation with `-Werror' is disabled because of this: 33 34 native/jni/native-lib/cpnet.c: In function 'cpnet_addMembership': 35 native/jni/native-lib/cpnet.c:583: error: dereferencing type-punned pointer will break strict-aliasing rules 36 native/jni/native-lib/cpnet.c: In function 'cpnet_dropMembership': 37 native/jni/native-lib/cpnet.c:598: error: dereferencing type-punned pointer will break strict-aliasing rules 38 39 */ 40 41 configureFlags = "--disable-Werror --disable-plugin --with-antlr-jar=${antlr}/lib/antlr.jar"; 42 43 meta = { 44 description = "Essential libraries for Java"; 45 46 longDescription = '' 47 GNU Classpath, Essential Libraries for Java, is a GNU project to create 48 free core class libraries for use with virtual machines and compilers 49 for the Java programming language. 50 ''; 51 52 homepage = http://www.gnu.org/software/classpath/; 53 54 # The exception makes it similar to LGPLv2+ AFAICS. 55 license = stdenv.lib.licenses.gpl2ClasspathPlus; 56 57 maintainers = [ ]; 58 platforms = stdenv.lib.platforms.linux; 59 }; 60}