Added google webtoolkit

svn path=/nixpkgs/trunk/; revision=10653
This commit is contained in:
Sander van der Burg 2008-02-13 08:43:38 +00:00
parent efb0822878
commit 6d4c13380b
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,33 @@
source $stdenv/setup
tar xfvj $src
ensureDir $out
cp -av $name $out
# Create wrapper scripts so that the GWT compiler/host work
libPath="$libstdcpp5/lib:$glib/lib:$gtk/lib:$atk/lib:$pango/lib:$libX11/lib:$libXt/lib:$out/$name/mozilla-1.7.12"
ensureDir $out/bin
cat > $out/bin/gwt-compile <<EOF
#!/bin/sh
export LD_LIBRARY_PATH=$libPath
export APPDIR=\`dirname \$0\`
export LIBXCB_ALLOW_SLOPPY_LOCK=1 # Workaround for bug in Java AWT implementation
java -cp "\$APPDIR/src:\$APPDIR/bin:$out/$name/gwt-user.jar:$out/$name/gwt-dev-linux.jar" com.google.gwt.dev.GWTCompiler -out "\$APPDIR/www" $@
EOF
chmod 755 $out/bin/gwt-compile
cat > $out/bin/gwt-shell <<EOF
#!/bin/sh
export LD_LIBRARY_PATH=$libPath
export APPDIR=\`dirname \$0\`
export LIBXCB_ALLOW_SLOPPY_LOCK=1 # Workaround for bug in Java AWT implementation
java -cp "\$APPDIR/src:\$APPDIR/bin:$out/$name/gwt-user.jar:$out/$name/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell -out "\$APPDIR/www" $@
EOF
chmod 755 $out/bin/gwt-shell

View File

@ -0,0 +1,14 @@
{stdenv, fetchurl, glib, gtk, pango, atk, libX11, libXt, libstdcpp5}:
stdenv.mkDerivation {
name = "gwt-linux-1.4.61";
builder = ./builder.sh;
src = fetchurl {
url = http://google-web-toolkit.googlecode.com/files/gwt-linux-1.4.61.tar.bz2;
md5 = "5aa5d630716817f7cf22dc2a36c0fcbd";
};
inherit glib gtk pango atk libX11 libXt libstdcpp5;
buildInputs = [glib gtk pango atk libX11 libXt libstdcpp5];
}

View File

@ -1407,6 +1407,13 @@ rec {
libraries = [];
};
*/
gwt = import ../development/compilers/gwt {
inherit stdenv fetchurl;
inherit (gtkLibs) glib gtk pango atk;
inherit (xlibs) libX11 libXt;
libstdcpp5 = gcc33.gcc;
};
helium = import ../development/compilers/helium {
inherit fetchurl stdenv;