2011-03-31 13:09:20 +02:00
|
|
|
{ stdenv, fetchurl, erlang, python, libxml2, libxslt, xmlto
|
2015-10-25 13:37:31 +01:00
|
|
|
, docbook_xml_dtd_45, docbook_xsl, zip, unzip
|
|
|
|
|
|
|
|
, AppKit, Carbon, Cocoa
|
|
|
|
}:
|
2011-03-31 13:09:20 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-04-19 16:46:31 +02:00
|
|
|
name = "rabbitmq-server-${version}";
|
|
|
|
|
2016-11-22 13:53:21 +01:00
|
|
|
version = "3.5.8";
|
2011-03-31 13:09:20 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-11-22 13:53:21 +01:00
|
|
|
url = "https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_5_8/rabbitmq-server-3.5.8.tar.gz";
|
|
|
|
sha256 = "0f373zxz15smb0jvfdfsbb924fl2qmp1z2jy3y50gv6b3xsdyqmr";
|
2011-03-31 13:09:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
2015-10-25 13:37:31 +01:00
|
|
|
[ erlang python libxml2 libxslt xmlto docbook_xml_dtd_45 docbook_xsl zip unzip ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ AppKit Carbon Cocoa ];
|
2011-03-31 13:09:20 +02:00
|
|
|
|
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
# Fix the "/usr/bin/env" in "calculate-relative".
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2014-01-26 14:15:10 +01:00
|
|
|
installFlags = "TARGET_DIR=$(out)/libexec/rabbitmq SBIN_DIR=$(out)/sbin MAN_DIR=$(out)/share/man DOC_INSTALL_DIR=$(out)/share/doc";
|
2011-03-31 13:09:20 +02:00
|
|
|
|
2013-04-19 16:46:31 +02:00
|
|
|
preInstall =
|
|
|
|
''
|
|
|
|
sed -i \
|
|
|
|
-e 's|SYS_PREFIX=|SYS_PREFIX=''${SYS_PREFIX-''${HOME}/.rabbitmq/${version}}|' \
|
|
|
|
-e 's|CONF_ENV_FILE=''${SYS_PREFIX}\(.*\)|CONF_ENV_FILE=\1|' \
|
|
|
|
scripts/rabbitmq-defaults
|
|
|
|
'';
|
|
|
|
|
2011-03-31 13:09:20 +02:00
|
|
|
postInstall =
|
|
|
|
''
|
2016-08-08 17:01:18 +02:00
|
|
|
echo 'PATH=${erlang}/bin:''${PATH:+:}$PATH' >> $out/sbin/rabbitmq-env
|
2011-03-31 13:09:20 +02:00
|
|
|
''; # */
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.rabbitmq.com/;
|
|
|
|
description = "An implementation of the AMQP messaging protocol";
|
2014-04-29 01:12:44 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2011-03-31 13:09:20 +02:00
|
|
|
};
|
|
|
|
}
|