forked from mirrors/nixpkgs
549a4405e3
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
24 lines
373 B
Bash
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
|