* Wrapper around Firefox to add some default plugins (currently, the

MPlayer plugin).

svn path=/nixpkgs/trunk/; revision=1565
This commit is contained in:
Eelco Dolstra
2004-10-17 13:28:28 +00:00
parent a4a9543dc6
commit c233d6f67c
4 changed files with 34 additions and 1 deletions
@@ -0,0 +1,19 @@
. $stdenv/setup
mkdir -p $out/bin
pluginPath=
for i in $plugins; do
p=$i/lib/mozilla/plugins
if test -e $p; then
pluginPath=$pluginPath${pluginPath:+:}$p
fi
done
cat > $out/bin/firefox <<EOF
#! $SHELL
export MOZ_PLUGIN_PATH=$pluginPath
exec $firefox/bin/firefox
EOF
chmod +x $out/bin/firefox
@@ -0,0 +1,9 @@
{stdenv, firefox, plugins}:
stdenv.mkDerivation {
name = firefox.name;
builder = ./builder.sh;
inherit firefox plugins;
}