2008-10-30 14:00:50 +01:00
|
|
|
{stdenv, fetchurl, pkgconfig, browser, libXpm, gettext}:
|
2003-11-13 14:11:38 +01:00
|
|
|
|
2008-07-28 18:43:16 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mplayerplug-in-3.55";
|
2003-11-13 14:11:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-07-28 18:43:16 +02:00
|
|
|
url = "mirror://sourceforge/mplayerplug-in/${name}.tar.gz";
|
|
|
|
sha256 = "0zkvqrzibrbljiccvz3rhbmgifxadlrfjylqpz48jnjx9kggynms";
|
2003-11-13 14:11:38 +01:00
|
|
|
};
|
|
|
|
|
2008-09-29 23:56:17 +02:00
|
|
|
postConfigure =
|
2008-10-30 14:00:50 +01:00
|
|
|
(if browser ? isFirefox3Like then ''
|
2008-09-29 23:56:17 +02:00
|
|
|
# Cause a rebuild of these file from the IDL file, needed for GNU IceCat 3
|
|
|
|
# and Mozilla Firefox 3.
|
|
|
|
# See, e.g., http://article.gmane.org/gmane.comp.mozilla.mplayerplug-in/2104 .
|
|
|
|
rm -f Source/nsIScriptableMplayerPlugin.h
|
|
|
|
''
|
|
|
|
else "");
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ browser (browser.gtk) libXpm gettext ];
|
2004-10-17 15:13:24 +02:00
|
|
|
|
2008-09-04 14:27:17 +02:00
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/lib/mozilla/plugins
|
2008-09-04 14:27:17 +02:00
|
|
|
cp -p mplayerplug-in*.so mplayerplug-in*.xpt $out/lib/mozilla/plugins
|
|
|
|
'';
|
2007-11-04 18:16:52 +01:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
mozillaPlugin = "/lib/mozilla/plugins";
|
|
|
|
};
|
|
|
|
|
2015-05-27 21:56:04 +02:00
|
|
|
meta = with stdenv.lib; {
|
2007-11-04 18:16:52 +01:00
|
|
|
description = "A browser plugin that uses mplayer to play digital media from websites";
|
|
|
|
homepage = http://mplayerplug-in.sourceforge.net/;
|
2015-05-27 21:56:04 +02:00
|
|
|
license = with licenses; [ gpl2Plus lgpl2Plus "MPLv1+" ];
|
2007-11-04 18:16:52 +01:00
|
|
|
};
|
|
|
|
}
|