diff --git a/pkgs/applications/networking/browsers/firefox-wrapper/builder.sh b/pkgs/applications/networking/browsers/firefox-wrapper/builder.sh index ac2e0ec313a..b4fdf2e0275 100644 --- a/pkgs/applications/networking/browsers/firefox-wrapper/builder.sh +++ b/pkgs/applications/networking/browsers/firefox-wrapper/builder.sh @@ -3,15 +3,20 @@ mkdir -p $out/bin pluginPath= +extraLibPath= for i in $plugins; do p=$i/lib/mozilla/plugins if test -e $p; then pluginPath=$pluginPath${pluginPath:+:}$p + if test -e $p/extra-library-path; then + extraLibPath=$extraLibPath${extraLibPath:+:}$(cat $p/extra-library-path) + fi fi done cat > $out/bin/firefox < $out/lib/mozilla/plugins/extra-library-path +} + +genericBuild diff --git a/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/default.nix b/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/default.nix new file mode 100644 index 00000000000..f2f88430aaa --- /dev/null +++ b/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/default.nix @@ -0,0 +1,13 @@ +{stdenv, fetchurl, zlib, libXmu}: + +stdenv.mkDerivation { + name = "flashplayer-7.0r25"; + + builder = ./builder.sh; + src = fetchurl { + url = http://fpdownload.macromedia.com/get/shockwave/flash/english/linux/7.0r25/install_flash_player_7_linux.tar.gz; + md5 = "79c59a5ea29347e01c8e6575dd054cd1"; + }; + + inherit zlib libXmu; +} diff --git a/pkgs/applications/video/mplayerplug-in/builder.sh b/pkgs/applications/networking/browsers/mozilla-plugins/mplayerplug-in/builder.sh similarity index 100% rename from pkgs/applications/video/mplayerplug-in/builder.sh rename to pkgs/applications/networking/browsers/mozilla-plugins/mplayerplug-in/builder.sh diff --git a/pkgs/applications/video/mplayerplug-in/default.nix b/pkgs/applications/networking/browsers/mozilla-plugins/mplayerplug-in/default.nix similarity index 100% rename from pkgs/applications/video/mplayerplug-in/default.nix rename to pkgs/applications/networking/browsers/mozilla-plugins/mplayerplug-in/default.nix diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 649c4b4f2f8..b1ab2224c1f 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -798,7 +798,12 @@ rec { firefoxWrapper = (import ../applications/networking/browsers/firefox-wrapper) { inherit stdenv firefox; - plugins = [MPlayerPlugin]; + plugins = [MPlayerPlugin flashplayer]; + }; + + flashplayer = (import ../applications/networking/browsers/mozilla-plugins/flashplayer) { + inherit fetchurl stdenv zlib; + inherit (xlibs) libXmu; }; thunderbird = @@ -824,7 +829,7 @@ rec { alsa = alsaLib; }; - MPlayerPlugin = (import ../applications/video/mplayerplug-in) { + MPlayerPlugin = (import ../applications/networking/browsers/mozilla-plugins/mplayerplug-in) { inherit fetchurl stdenv pkgconfig firefox; inherit (xlibs) libXpm; };