nixpkgs/pkgs/development/interpreters/xulrunner/wrapper/builder.sh
Eelco Dolstra 549a4405e3 * xulrunner-wrapper: use Firefox 3 directly (via "firefox -app"),
since it has full support for running XUL applications.  This saves
  a lot of space (you don't need two copies of basically the same
  software).
* Deleted the old xulrunner (1.8.0.4), it didn't compile anyway with
  recent GTK.
* Updated chatzilla to 0.9.83.

svn path=/nixpkgs/trunk/; revision=12794
2008-09-04 09:29:09 +00:00

24 lines
373 B
Bash

source $stdenv/setup
ensureDir $out/bin
set -x
wrapper="$out/bin/$launcher"
if test -e $xulrunner/bin/xulrunner; then
runner=$xulrunner/bin/xulrunner
elif test -e $xulrunner/bin/firefox; then
runner="$xulrunner/bin/firefox -app"
else
echo "XUL runner not found"
exit 1
fi
cat > $wrapper <<EOF
#! $SHELL -e
$runner $appfile "\$@"
EOF
chmod +x $wrapper