2018-12-31 04:40:47 +01:00
|
|
|
{ stdenv, fetchurl, firefox, libX11, xorgproto }:
|
2015-07-21 13:35:54 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mozplugger";
|
2015-07-21 13:35:54 +02:00
|
|
|
version = "2.1.6";
|
2009-02-08 18:23:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://mozplugger.mozdev.org/files/mozplugger-${version}.tar.gz";
|
2015-07-21 13:35:54 +02:00
|
|
|
sha256 = "1vszkq4kdbaxsrqr2xn9rq6ipza9fngdri79gvjqk3bvsdmg0k19";
|
2009-02-08 18:23:22 +01:00
|
|
|
};
|
|
|
|
|
2018-12-31 04:40:47 +01:00
|
|
|
buildInputs = [ firefox libX11 xorgproto ];
|
2009-02-08 18:23:22 +01:00
|
|
|
|
2015-07-21 13:35:54 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/etc" "$out/bin" "$out/lib/mozilla/plugins" "$out/share/man/man7"
|
|
|
|
cp mozpluggerrc "$out/etc"
|
|
|
|
cp mozplugger-{helper,controller,linker,update} "$out/bin"
|
|
|
|
cp mozplugger.so "$out/lib/mozilla/plugins"
|
|
|
|
cp mozplugger.7 "$out/share/man/man7"
|
2009-02-08 18:23:22 +01:00
|
|
|
|
2019-08-15 14:41:18 +02:00
|
|
|
mkdir -p "$out/share/${pname}-${version}/plugin"
|
|
|
|
ln -s "$out/lib/mozilla/plugins/mozplugger.so" "$out/share/${pname}-${version}/plugin"
|
2015-07-21 13:35:54 +02:00
|
|
|
'';
|
2009-02-08 18:23:22 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Mozilla plugin for launching external program for handling in-page objects";
|
2015-07-21 13:35:54 +02:00
|
|
|
homepage = http://mozplugger.mozdev.org/;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-02-08 18:23:22 +01:00
|
|
|
};
|
|
|
|
}
|