c9baba9212
(My OCD kicked in today...) Remove repeated package names, capitalize first word, remove trailing periods and move overlong descriptions to longDescription. I also simplified some descriptions as well, when they were particularly long or technical, often based on Arch Linux' package descriptions. I've tried to stay away from generated expressions (and I think I succeeded). Some specifics worth mentioning: * cron, has "Vixie Cron" in its description. The "Vixie" part is not mentioned anywhere else. I kept it in a parenthesis at the end of the description. * ctags description started with "Exuberant Ctags ...", and the "exuberant" part is not mentioned elsewhere. Kept it in a parenthesis at the end of description. * nix has the description "The Nix Deployment System". Since that doesn't really say much what it is/does (especially after removing the package name!), I changed that to "Powerful package manager that makes package management reliable and reproducible" (borrowed from nixos.org). * Tons of "GNU Foo, Foo is a [the important bits]" descriptions is changed to just [the important bits]. If the package name doesn't contain GNU I don't think it's needed to say it in the description either.
60 lines
1.9 KiB
Nix
60 lines
1.9 KiB
Nix
{ fetchurl, stdenv, javac, jvm, antlr, pkgconfig, gtk, gconf }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "classpath-0.99";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/classpath/${name}.tar.gz";
|
|
sha256 = "1j7cby4k66f1nvckm48xcmh352b1d1b33qk7l6hi7dp9i9zjjagr";
|
|
};
|
|
|
|
patches = [ ./missing-casts.patch ];
|
|
|
|
buildInputs = [ javac jvm antlr pkgconfig gtk gconf ];
|
|
|
|
configurePhase = ''
|
|
# GCJ tries to compile all of Classpath during the `configure' run when
|
|
# trying to build in the source tree (see
|
|
# http://www.mail-archive.com/classpath@gnu.org/msg15079.html), thus we
|
|
# build out-of-tree.
|
|
mkdir ../build
|
|
cd ../build
|
|
echo "building in \`$PWD'"
|
|
|
|
../${name}/configure --prefix="$out" \
|
|
--enable-fast-install --disable-dependency-tracking \
|
|
${configureFlags}
|
|
'';
|
|
|
|
/* Plug-in support requires Xulrunner and all that. Maybe someday,
|
|
optionally.
|
|
|
|
Compilation with `-Werror' is disabled because of this:
|
|
|
|
native/jni/native-lib/cpnet.c: In function 'cpnet_addMembership':
|
|
native/jni/native-lib/cpnet.c:583: error: dereferencing type-punned pointer will break strict-aliasing rules
|
|
native/jni/native-lib/cpnet.c: In function 'cpnet_dropMembership':
|
|
native/jni/native-lib/cpnet.c:598: error: dereferencing type-punned pointer will break strict-aliasing rules
|
|
|
|
*/
|
|
|
|
configureFlags = "--disable-Werror --disable-plugin --with-antlr-jar=${antlr}/lib/antlr.jar";
|
|
|
|
meta = {
|
|
description = "Essential libraries for Java";
|
|
|
|
longDescription = ''
|
|
GNU Classpath, Essential Libraries for Java, is a GNU project to create
|
|
free core class libraries for use with virtual machines and compilers
|
|
for the Java programming language.
|
|
'';
|
|
|
|
homepage = http://www.gnu.org/software/classpath/;
|
|
|
|
# The exception makes it similar to LGPLv2+ AFAICS.
|
|
license = "GPLv2+ + exception";
|
|
|
|
maintainers = [ ];
|
|
};
|
|
}
|