mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
f08928cfe6
svn path=/nixpkgs/trunk/; revision=18481
32 lines
903 B
Bash
32 lines
903 B
Bash
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 LIBXCB_ALLOW_SLOPPY_LOCK=1 # Workaround for bug in Java AWT implementation
|
|
|
|
$jdk/bin/java -Xmx256m -cp "\$CLASSPATH:$out/$name/gwt-user.jar:$out/$name/gwt-dev-linux.jar" com.google.gwt.dev.Compiler \$@
|
|
EOF
|
|
chmod 755 $out/bin/gwt-compile
|
|
|
|
cat > $out/bin/gwt-shell <<EOF
|
|
#!/bin/sh
|
|
|
|
export LD_LIBRARY_PATH=$libPath
|
|
export LIBXCB_ALLOW_SLOPPY_LOCK=1 # Workaround for bug in Java AWT implementation
|
|
|
|
$jdk/bin/java -Xmx256m -cp "\$CLASSPATH:$out/$name/gwt-user.jar:$out/$name/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell \$@
|
|
EOF
|
|
chmod 755 $out/bin/gwt-shell
|