diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2004-10-17 13:28:28 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2004-10-17 13:28:28 +0000 |
commit | c233d6f67c167b3a35dd7a63970e7d7342a2863b (patch) | |
tree | d3ca0b2432a4e79f516b12fe2f91837dd659bb9b /pkgs/applications | |
parent | a4a9543dc67125037cfc657f6bfa5c3925697dd0 (diff) | |
download | nixlib-c233d6f67c167b3a35dd7a63970e7d7342a2863b.tar nixlib-c233d6f67c167b3a35dd7a63970e7d7342a2863b.tar.gz nixlib-c233d6f67c167b3a35dd7a63970e7d7342a2863b.tar.bz2 nixlib-c233d6f67c167b3a35dd7a63970e7d7342a2863b.tar.lz nixlib-c233d6f67c167b3a35dd7a63970e7d7342a2863b.tar.xz nixlib-c233d6f67c167b3a35dd7a63970e7d7342a2863b.tar.zst nixlib-c233d6f67c167b3a35dd7a63970e7d7342a2863b.zip |
* Wrapper around Firefox to add some default plugins (currently, the
MPlayer plugin). svn path=/nixpkgs/trunk/; revision=1565
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/browsers/firefox-wrapper/builder.sh | 19 | ||||
-rw-r--r-- | pkgs/applications/networking/browsers/firefox-wrapper/default.nix | 9 |
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/firefox-wrapper/builder.sh b/pkgs/applications/networking/browsers/firefox-wrapper/builder.sh new file mode 100644 index 000000000000..ac2e0ec313ab --- /dev/null +++ b/pkgs/applications/networking/browsers/firefox-wrapper/builder.sh @@ -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 diff --git a/pkgs/applications/networking/browsers/firefox-wrapper/default.nix b/pkgs/applications/networking/browsers/firefox-wrapper/default.nix new file mode 100644 index 000000000000..2e3c81d9e417 --- /dev/null +++ b/pkgs/applications/networking/browsers/firefox-wrapper/default.nix @@ -0,0 +1,9 @@ +{stdenv, firefox, plugins}: + +stdenv.mkDerivation { + name = firefox.name; + + builder = ./builder.sh; + + inherit firefox plugins; +} |