2014-07-27 11:49:42 +00:00
|
|
|
{ stdenv, fetchurl, jre }:
|
2010-07-29 18:55:16 +00:00
|
|
|
|
2014-07-27 11:49:42 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "openfire-${version}";
|
|
|
|
version = "3_6_3";
|
2008-02-21 04:48:55 +00:00
|
|
|
|
2014-07-27 11:49:42 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_${version}.tar.gz";
|
|
|
|
sha256 = "0ibzhmh9qw4lmx45ir1i280p30npgwnj7vrkl432kj3zi7hp79q2";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ jre ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2015-09-30 15:39:09 +00:00
|
|
|
sed -e 's@\(common_jvm_locations=\).*@\1${jre}@' -i bin/openfire
|
2014-07-27 11:49:42 +00:00
|
|
|
cp -r . $out
|
|
|
|
rm -r $out/logs
|
|
|
|
mv $out/conf $out/conf.inst
|
|
|
|
ln -s /var/log/openfire $out/logs
|
|
|
|
ln -s /etc/openfire $out/conf
|
|
|
|
'';
|
2008-02-21 04:48:55 +00:00
|
|
|
|
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "XMPP server in Java";
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-02-21 04:48:55 +00:00
|
|
|
};
|
|
|
|
}
|