Added google webtoolkit
svn path=/nixpkgs/trunk/; revision=10653
This commit is contained in:
parent
efb0822878
commit
6d4c13380b
33
pkgs/development/compilers/gwt/builder.sh
Normal file
33
pkgs/development/compilers/gwt/builder.sh
Normal 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
|
14
pkgs/development/compilers/gwt/default.nix
Normal file
14
pkgs/development/compilers/gwt/default.nix
Normal 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];
|
||||||
|
}
|
@ -1407,6 +1407,13 @@ rec {
|
|||||||
libraries = [];
|
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 {
|
helium = import ../development/compilers/helium {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user