2009-07-15 22:34:08 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, dbus, dbus_glib, browser, x11
|
|
|
|
, GConf, gnome_mplayer, MPlayer
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-09-11 19:16:42 +02:00
|
|
|
name = "gecko-mediaplayer-0.9.99.rc1";
|
2009-07-15 22:34:08 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://gecko-mediaplayer.googlecode.com/files/${name}.tar.gz";
|
2010-09-11 19:16:42 +02:00
|
|
|
sha256 = "1ddp8z2a40wxdj7v20wqph9l4z4a47bjqzac7wlmmzjq7a9pbij2";
|
2009-07-15 22:34:08 +02:00
|
|
|
};
|
|
|
|
|
2010-09-11 19:16:42 +02:00
|
|
|
buildInputs = [pkgconfig glib dbus dbus_glib browser x11 GConf browser.xulrunner];
|
2009-07-15 22:34:08 +02:00
|
|
|
|
|
|
|
# !!! fix this
|
|
|
|
preBuild =
|
|
|
|
''
|
2010-09-11 19:16:42 +02:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$(echo ${browser.xulrunner}/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 =
|
|
|
|
''
|
|
|
|
echo "${gnome_mplayer}/bin:${MPlayer}/bin" > $out/${passthru.mozillaPlugin}/extra-bin-path
|
|
|
|
'';
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|