2011-03-31 12:09:20 +01:00
|
|
|
{ stdenv, fetchurl, erlang, python, libxml2, libxslt, xmlto
|
2013-03-07 11:34:45 +00:00
|
|
|
, docbook_xml_dtd_45, docbook_xsl, zip, unzip }:
|
2011-03-31 12:09:20 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-03-07 11:34:45 +00:00
|
|
|
name = "rabbitmq-server-3.0.3";
|
2011-03-31 12:09:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-03-07 11:34:45 +00:00
|
|
|
url = "http://www.rabbitmq.com/releases/rabbitmq-server/v3.0.3/${name}.tar.gz";
|
|
|
|
sha256 = "07mp57xvszdrlgw8rgn9r9dpa6vdqdjk7f1dyh6a9sdg8s9fby38";
|
2011-03-31 12:09:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
2013-03-07 11:34:45 +00:00
|
|
|
[ erlang python libxml2 libxslt xmlto docbook_xml_dtd_45 docbook_xsl zip unzip ];
|
2011-03-31 12:09:20 +01:00
|
|
|
|
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
# Fix the "/usr/bin/env" in "calculate-relative".
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = "TARGET_DIR=$(out)/libexec/rabbitmq SBIN_DIR=$(out)/sbin MAN_DIR=$(out)/share/man";
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
echo 'PATH=${erlang}/bin:${PATH:+:}$PATH' >> $out/sbin/rabbitmq-env
|
|
|
|
''; # */
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.rabbitmq.com/;
|
|
|
|
description = "An implementation of the AMQP messaging protocol";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|