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

MPlayer plugin).

svn path=/nixpkgs/trunk/; revision=1565
wip/yesman
Eelco Dolstra 20 years ago
parent a4a9543dc6
commit c233d6f67c
  1. 19
      pkgs/applications/networking/browsers/firefox-wrapper/builder.sh
  2. 9
      pkgs/applications/networking/browsers/firefox-wrapper/default.nix
  3. 5
      pkgs/system/all-packages-generic.nix
  4. 2
      pkgs/system/populate-cache.nix

@ -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;
}

@ -796,6 +796,11 @@ rec {
inherit (xlibs) libXi;
};
firefoxWrapper = (import ../applications/networking/browsers/firefox-wrapper) {
inherit stdenv firefox;
plugins = [MPlayerPlugin];
};
thunderbird =
(import ../build-support/make-symlinks) {
inherit stdenv;

@ -46,7 +46,7 @@ let {
subversion
pan
sylpheed
firefox
firefoxWrapper
thunderbird
lynx
MPlayer

Loading…
Cancel
Save