2008-02-21 05:48:55 +01:00
|
|
|
args : with args; with builderDefs {src="";} null;
|
|
|
|
let localDefs = builderDefs (rec {
|
|
|
|
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
|
|
|
|
ln -s /var/logs/openfire $out/logs
|
|
|
|
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-02-21 05:48:55 +01:00
|
|
|
}) null; /* null is a terminator for sumArgs */
|
|
|
|
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 = {
|
|
|
|
description = "
|
|
|
|
XMPP server in Java.
|
|
|
|
";
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2008-02-21 05:48:55 +01:00
|
|
|
};
|
|
|
|
}
|