2008-08-19 07:54:09 +02:00
|
|
|
args : with args; with builderDefs;
|
2008-11-04 22:24:10 +01:00
|
|
|
let localDefs = builderDefs.passthru.function (rec {
|
2008-02-21 05:48:55 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_4_5.tar.gz;
|
|
|
|
sha256 = "0j1ddk0wiqxhbi3872vf2mqx0jynswrvbfbabrp73zqhz3mdvsal";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [jre];
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
installPhase = FullDepEntry (''
|
|
|
|
sed -e 's@\(common_jvm_locations\)=.*@\1${jre}@' -i bin/openfire
|
|
|
|
cp -r . $out
|
2008-03-22 18:53:27 +01:00
|
|
|
rm -r $out/logs
|
|
|
|
mv $out/conf $out/conf.inst
|
2008-03-22 20:51:19 +01:00
|
|
|
ln -s /var/log/openfire $out/logs
|
2008-03-22 18:53:27 +01:00
|
|
|
ln -s /etc/openfire $out/conf
|
2008-02-21 05:48:55 +01:00
|
|
|
'')
|
2008-03-22 18:53:27 +01:00
|
|
|
["minInit" "doUnpack" "addInputs"];
|
2008-08-19 07:54:09 +02:00
|
|
|
});
|
2008-02-21 05:48:55 +01:00
|
|
|
in with localDefs;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "openfire-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs
|
2008-03-22 18:53:27 +01:00
|
|
|
[ installPhase doForceShare doPropagate]);
|
2008-02-21 05:48:55 +01:00
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "XMPP server in Java";
|
|
|
|
inherit src;
|
2008-02-21 05:48:55 +01:00
|
|
|
};
|
|
|
|
}
|