nixpkgs/pkgs/development/interpreters/xulrunner/builder.sh
Martin Bravenboer 04767dfdd9 * Added xulrunner 1.8.0.1
* Added a basic wrapper generator for xulrunner

* Chatzilla running in xulrunner


svn path=/nixpkgs/trunk/; revision=4809
2006-02-15 02:53:01 +00:00

24 lines
670 B
Bash

source $stdenv/setup
postInstall=postInstall
postInstall() {
strip -S $out/lib/*/* || true
# This fixes starting Firefox when there already is a running
# instance. The `firefox' wrapper script actually expects to be
# in the same directory as `run-mozilla.sh', apparently.
cd $out/bin
mv xulrunner ../lib/xulrunner-*/
ln -s ../lib/xulrunner-*/xulrunner .
echo "running xulrunner --register-global..."
$out/bin/xulrunner --register-global || true
# xulrunner wants to create these directories at the first startup
cd $out
ensureDir ./lib/xulrunner-*/extensions
ensureDir ./lib/xulrunner-*/updates
}
genericBuild