1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

* JDK: put the machine-dependent header files in the right place.

* Added SWT for GTK (built from source).
* Added Azureus (a Bittorrent client written in Java).

svn path=/nixpkgs/trunk/; revision=4438
This commit is contained in:
Eelco Dolstra 2005-12-26 00:51:24 +00:00
parent 322d2f95e8
commit b43c421658
6 changed files with 84 additions and 8 deletions

View file

@ -46,3 +46,6 @@ for i in $(find $out -name "*.pack"); do
$out/bin/unpack200 "$i" "$(dirname $i)/$(basename $i .pack).jar"
rm "$i"
done
# Put the *_md.h files in the right place.
cd $out/include && ln -s */*_md.h .

View file

@ -0,0 +1,16 @@
source $stdenv/setup
unzip $src src.zip
unzip src.zip
sh ./build.sh make_swt make_atk
ensureDir $out/lib
cp *.so $out/lib
mkdir out
javac -d out/ $(find org/ -name "*.java")
ensureDir $out/jars
cp version.txt out/
cd out && jar -c * > $out/jars/swt.jar

View file

@ -0,0 +1,16 @@
{stdenv, fetchurl, unzip, jdk, pkgconfig, gtk, libXtst}:
stdenv.mkDerivation {
name = "swt-3.1.1";
builder = ./builder.sh;
# Alas, the Eclipse Project apparently doesn't produce source-only
# releases of SWT. So we just grab a binary release and extract
# "src.zip" from that.
src = fetchurl {
url = ftp://ftp.tu-clausthal.de/pub/eclipse/downloads/drops/R-3.1.1-200509290840/swt-3.1.1-gtk-linux-x86.zip;
md5 = "23dfe5a4a566439c5f526d9ea3b3db1c";
};
buildInputs = [unzip jdk pkgconfig gtk libXtst];
}

View file

@ -214,6 +214,10 @@ rec {
inherit fetchurl stdenv python pygtk makeWrapper;
};
azureus = import ../tools/networking/azureus {
inherit fetchurl stdenv jdk swt;
};
dhcp = (import ../tools/networking/dhcp) {
inherit fetchurl stdenv groff nettools coreutils iputils gnused bash;
};
@ -1142,11 +1146,11 @@ rec {
};
lucene = import ../development/libraries/java/lucene {
inherit stdenv fetchurl;
inherit stdenv fetchurl;
};
jdom = import ../development/libraries/java/jdom {
inherit stdenv fetchurl;
inherit stdenv fetchurl;
};
javaCup = import ../development/libraries/java/cup {
@ -1154,27 +1158,33 @@ rec {
};
jflex = import ../development/libraries/java/jflex {
inherit stdenv fetchurl;
inherit stdenv fetchurl;
};
junit = import ../development/libraries/java/junit {
inherit stdenv fetchurl unzip;
inherit stdenv fetchurl unzip;
};
javasvn = import ../development/libraries/java/javasvn {
inherit stdenv fetchurl unzip;
inherit stdenv fetchurl unzip;
};
httpunit = import ../development/libraries/java/httpunit {
inherit stdenv fetchurl unzip;
inherit stdenv fetchurl unzip;
};
mockobjects = import ../development/libraries/java/mockobjects {
inherit stdenv fetchurl;
inherit stdenv fetchurl;
};
commonsFileUpload = import ../development/libraries/java/jakarta-commons/file-upload {
inherit stdenv fetchurl;
inherit stdenv fetchurl;
};
swt = import ../development/libraries/java/swt {
inherit stdenv fetchurl unzip jdk pkgconfig;
inherit (gtkLibs) gtk;
inherit (xlibs) libXtst;
};
### DEVELOPMENT / PERL MODULES

View file

@ -0,0 +1,19 @@
source $stdenv/setup
ensureDir $out/jars
cp $src $out/jars/azureus.jar
ensureDir $out/bin
cat > $out/bin/azureus <<EOF
#! $SHELL -e
azureusHome=$out
if test -n "\$HOME"; then
azureusHome=\$HOME/.Azureus
fi
exec $jdk/bin/java -Xms16m -Xmx128m \
-cp $out/jars/azureus.jar:$swt/jars/swt.jar \
-Djava.library.path=$swt/lib \
-Dazureus.install.path=\$azureusHome \
org.gudy.azureus2.ui.swt.Main
EOF
chmod +x $out/bin/azureus

View file

@ -0,0 +1,12 @@
{stdenv, fetchurl, jdk, swt}:
stdenv.mkDerivation {
name = "azureus-2.3.0.6";
builder = ./builder.sh;
src = fetchurl {
url = http://surfnet.dl.sourceforge.net/sourceforge/azureus/Azureus2.3.0.6.jar;
md5 = "84f85b144cdc574338c2c84d659ca620";
};
# buildInputs = [unzip];
inherit jdk swt;
}