2009-02-08 18:23:22 +01:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
fetchurl = a.fetchurl;
|
|
|
|
|
2009-05-24 12:57:41 +02:00
|
|
|
version = a.lib.attrByPath ["version"] "1.12.0" a;
|
2009-02-08 18:23:22 +01:00
|
|
|
buildInputs = with a; [
|
|
|
|
firefox libX11 xproto
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://mozplugger.mozdev.org/files/mozplugger-${version}.tar.gz";
|
|
|
|
sha256 = "1vpggfmbv4h3srk80rgidd020i03hrkpb7cfxkwagkcd0zcal4hk";
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
makeFlags = ["linux" "prefix=" "root=$out"];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
preBuild = a.fullDepEntry(''
|
2009-02-08 18:23:22 +01:00
|
|
|
sed -e s@/usr/@"$out/"@g -i mozplugger.c
|
|
|
|
'') ["doUnpack" "minInit"];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
postInstall = a.fullDepEntry(''
|
2009-02-08 18:23:22 +01:00
|
|
|
ensureDir $out/share/${name}/plugin
|
|
|
|
ln -s $out/lib/mozilla/plugins/mozplugger.so $out/share/${name}/plugin
|
|
|
|
'') ["doMakeInstall" "minInit" "defEnsureDir"];
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["preBuild" "doMakeInstall" "postInstall"];
|
|
|
|
|
|
|
|
name = "mozplugger-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "Mozilla plugin for launching external program for handling in-page objects";
|
|
|
|
};
|
|
|
|
}
|