* 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:
16
pkgs/development/libraries/java/swt/builder.sh
Normal file
16
pkgs/development/libraries/java/swt/builder.sh
Normal 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
|
||||
16
pkgs/development/libraries/java/swt/default.nix
Normal file
16
pkgs/development/libraries/java/swt/default.nix
Normal 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];
|
||||
}
|
||||
Reference in New Issue
Block a user