mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 20:02:14 +03:00
openfire: get rid of builderDefs
This commit is contained in:
parent
a219db3cb2
commit
c8cd4275a3
@ -1,34 +1,25 @@
|
||||
{ stdenv, fetchurl, builderDefs, jre }:
|
||||
{ stdenv, fetchurl, jre }:
|
||||
|
||||
with builderDefs;
|
||||
let
|
||||
version="3_6_3";
|
||||
localDefs = builderDefs.passthru.function (rec {
|
||||
src = /* put a fetchurl here */
|
||||
fetchurl {
|
||||
url = "http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_${version}.tar.gz";
|
||||
sha256 = "0ibzhmh9qw4lmx45ir1i280p30npgwnj7vrkl432kj3zi7hp79q2";
|
||||
};
|
||||
|
||||
buildInputs = [jre];
|
||||
configureFlags = [];
|
||||
|
||||
installPhase = fullDepEntry (''
|
||||
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
|
||||
'')
|
||||
["minInit" "doUnpack" "addInputs"];
|
||||
});
|
||||
in with localDefs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "openfire-"+version;
|
||||
builder = writeScript (name + "-builder")
|
||||
(textClosure localDefs
|
||||
[ installPhase doForceShare doPropagate]);
|
||||
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";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user