2004-10-17 15:28:28 +02:00
|
|
|
. $stdenv/setup
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
|
|
|
|
pluginPath=
|
2004-10-17 15:56:56 +02:00
|
|
|
extraLibPath=
|
2004-10-17 15:28:28 +02:00
|
|
|
for i in $plugins; do
|
|
|
|
p=$i/lib/mozilla/plugins
|
|
|
|
if test -e $p; then
|
|
|
|
pluginPath=$pluginPath${pluginPath:+:}$p
|
2004-10-17 15:56:56 +02:00
|
|
|
if test -e $p/extra-library-path; then
|
|
|
|
extraLibPath=$extraLibPath${extraLibPath:+:}$(cat $p/extra-library-path)
|
|
|
|
fi
|
2004-10-17 15:28:28 +02:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
cat > $out/bin/firefox <<EOF
|
|
|
|
#! $SHELL
|
2004-10-17 15:56:56 +02:00
|
|
|
export LD_LIBRARY_PATH=$extraLibPath
|
2004-10-17 15:28:28 +02:00
|
|
|
export MOZ_PLUGIN_PATH=$pluginPath
|
|
|
|
exec $firefox/bin/firefox
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $out/bin/firefox
|