2011-03-31 13:09:20 +02:00
|
|
|
{ stdenv, fetchurl, erlang, python, libxml2, libxslt, xmlto
|
2017-02-09 00:12:49 +01:00
|
|
|
, docbook_xml_dtd_45, docbook_xsl, zip, unzip, rsync
|
2015-10-25 13:37:31 +01:00
|
|
|
|
|
|
|
, 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}";
|
|
|
|
|
2017-02-09 00:12:49 +01:00
|
|
|
version = "3.6.6";
|
2011-03-31 13:09:20 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-02-09 00:12:49 +01:00
|
|
|
url = "https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_6/rabbitmq-server-3.6.6.tar.xz";
|
|
|
|
sha256 = "13mpnyfxd026w525rsnkcw0f8bcrkbzl7k9g8pnqmm3zyny8jmir";
|
2011-03-31 13:09:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs =
|
2017-02-09 00:12:49 +01:00
|
|
|
[ erlang python libxml2 libxslt xmlto docbook_xml_dtd_45 docbook_xsl zip unzip rsync ]
|
2015-10-25 13:37:31 +01:00
|
|
|
++ 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 .
|
|
|
|
'';
|
|
|
|
|
2017-02-09 00:12:49 +01:00
|
|
|
installFlags = "PREFIX=$(out) RMQ_ERLAPP_DIR=$(out)";
|
|
|
|
installTargets = "install install-man";
|
2013-04-19 16:46:31 +02:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|