mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
32 lines
861 B
Nix
32 lines
861 B
Nix
{ stdenv, fetchurl, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "openfire";
|
|
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;
|
|
# Some security advisories seem to apply, and each next version wants to
|
|
# write into larger parts of installation directory; installation is just
|
|
# unpacking, though
|
|
broken = true;
|
|
};
|
|
}
|