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