3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/xmpp/openfire/default.nix
Tuomas Tynkkynen 21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00

28 lines
673 B
Nix

{ stdenv, fetchurl, jre }:
stdenv.mkDerivation rec {
name = "openfire-${version}";
version = "3_6_3";
src = fetchurl {
url = "http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_${version}.tar.gz";
sha256 = "0ibzhmh9qw4lmx45ir1i280p30npgwnj7vrkl432kj3zi7hp79q2";
};
buildInputs = [ jre ];
installPhase = ''
sed -e 's@\(common_jvm_locations=\).*@\1${jre}@' -i bin/openfire
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
'';
meta = {
description = "XMPP server in Java";
platforms = stdenv.lib.platforms.unix;
};
}