2015-09-15 10:13:22 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, dbus, dbus_glib, browser, xlibsWrapper
|
2013-01-14 12:10:16 +00:00
|
|
|
, GConf, gnome_mplayer, mplayer, gmtk
|
2009-07-15 21:34:08 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-02-23 18:32:42 +00:00
|
|
|
name = "gecko-mediaplayer-1.0.5";
|
2009-07-15 21:34:08 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://gecko-mediaplayer.googlecode.com/files/${name}.tar.gz";
|
2012-02-23 18:32:42 +00:00
|
|
|
sha256 = "913fd39e70c564cb210c2544a88869f9d1a448184421f000b14b2bc5ba718b49";
|
2009-07-15 21:34:08 +01:00
|
|
|
};
|
|
|
|
|
2015-09-15 10:13:22 +01:00
|
|
|
buildInputs = [ pkgconfig glib dbus dbus_glib browser xlibsWrapper GConf browser gmtk ];
|
2009-07-15 21:34:08 +01:00
|
|
|
|
|
|
|
# !!! fix this
|
|
|
|
preBuild =
|
|
|
|
''
|
2015-10-05 16:45:54 +01:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$(echo ${browser}/include/xulrunner-*) -I${browser.nspr.dev}/include/nspr"
|
2009-07-15 21:34:08 +01:00
|
|
|
echo $NIX_CFLAGS_COMPILE
|
|
|
|
'';
|
|
|
|
|
|
|
|
# This plugin requires Gnome MPlayer and MPlayer to be in the
|
|
|
|
# browser's $PATH.
|
|
|
|
postInstall =
|
|
|
|
''
|
2013-01-14 12:10:16 +00:00
|
|
|
echo "${gnome_mplayer}/bin:${mplayer}/bin" > $out/${passthru.mozillaPlugin}/extra-bin-path
|
2009-07-15 21:34:08 +01:00
|
|
|
'';
|
|
|
|
|
2010-09-11 18:16:42 +01:00
|
|
|
passthru.mozillaPlugin = "/lib/mozilla/plugins";
|
2009-07-15 21:34:08 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A browser plugin that uses GNOME MPlayer to play media in a browser";
|
|
|
|
homepage = http://kdekorte.googlepages.com/gecko-mediaplayer;
|
2014-07-23 14:31:49 +01:00
|
|
|
broken = true;
|
2009-07-15 21:34:08 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|