diff options
author | Alexey Lebedeff <binarin@binarin.ru> | 2018-09-24 15:30:32 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2018-09-25 11:19:23 +0200 |
commit | a6ff5865d1342cdc6d04c1de005a5648432dbe33 (patch) | |
tree | 644a02baff7e7da71b602430430e78ed5b35b584 /pkgs/servers/amqp | |
parent | ded8f28c3a3bd0204738275362dc9450755f9e6b (diff) |
rabbitmq-server: 3.6.10 -> 3.7.8
- New dependency on 'getconf' binary for
https://github.com/rabbitmq/rabbitmq-common/blob/3aa619e9ef81cfe6db0c776e6cd829ce234a7881/src/vm_memory_monitor.erl#L448
- New dependency on 'socat' for systemd notifications
https://github.com/rabbitmq/rabbitmq-server/blob/4a3ee3a336bc82f2e56ec5d2292c80458ccc2974/src/rabbit.erl#L361
- elixir_1_6 for a new 'rabbitmqctl' tool
- Replace patching with providing custom PATH, as we already have some
other things here
- Renamed package in all-packages.nix from a legacy spelling
Diffstat (limited to 'pkgs/servers/amqp')
-rw-r--r-- | pkgs/servers/amqp/rabbitmq-server/default.nix | 37 |
1 files changed, 10 insertions, 27 deletions
diff --git a/pkgs/servers/amqp/rabbitmq-server/default.nix b/pkgs/servers/amqp/rabbitmq-server/default.nix index 22a9aef8edab..514771f7e580 100644 --- a/pkgs/servers/amqp/rabbitmq-server/default.nix +++ b/pkgs/servers/amqp/rabbitmq-server/default.nix @@ -1,41 +1,30 @@ -{ stdenv, fetchurl -, erlang, python, libxml2, libxslt, xmlto -, docbook_xml_dtd_45, docbook_xsl, zip, unzip, rsync +{ stdenv, fetchurl, erlang, elixir, python, libxml2, libxslt, xmlto +, docbook_xml_dtd_45, docbook_xsl, zip, unzip, rsync, getconf, socat , AppKit, Carbon, Cocoa -, getconf }: stdenv.mkDerivation rec { name = "rabbitmq-server-${version}"; - version = "3.6.15"; + + version = "3.7.8"; src = fetchurl { - url = "https://www.rabbitmq.com/releases/rabbitmq-server/v${version}/${name}.tar.xz"; - sha256 = "1zdmil657mhjmd20jv47s5dfpj2liqwvyg0zv2ky3akanfpgj98y"; + url = "https://github.com/rabbitmq/rabbitmq-server/releases/download/v${version}/${name}.tar.xz"; + sha256 = "00jsix333g44y20psrp12c96b7d161yvrysnygjjz4wc5gbrzlxy"; }; buildInputs = - [ erlang python libxml2 libxslt xmlto docbook_xml_dtd_45 docbook_xsl zip unzip rsync ] + [ erlang elixir python libxml2 libxslt xmlto docbook_xml_dtd_45 docbook_xsl zip unzip rsync ] ++ stdenv.lib.optionals stdenv.isDarwin [ AppKit Carbon Cocoa ]; outputs = [ "out" "man" "doc" ]; - postPatch = with stdenv.lib; '' - # patch the path to getconf - substituteInPlace deps/rabbit_common/src/vm_memory_monitor.erl \ - --replace "getconf PAGESIZE" "${getconf}/bin/getconf PAGESIZE" - ''; - - preBuild = '' - # Fix the "/usr/bin/env" in "calculate-relative". - patchShebangs . - ''; - installFlags = "PREFIX=$(out) RMQ_ERLAPP_DIR=$(out)"; installTargets = "install install-man"; + runtimePath = stdenv.lib.makeBinPath [getconf erlang socat]; postInstall = '' - echo 'PATH=${erlang}/bin:''${PATH:+:}$PATH' >> $out/sbin/rabbitmq-env + echo 'PATH=${runtimePath}:''${PATH:+:}$PATH' >> $out/sbin/rabbitmq-env # we know exactly where rabbitmq is gonna be, # so we patch that into the env-script @@ -49,13 +38,7 @@ stdenv.mkDerivation rec { # and an unecessarily copied INSTALL file rm $out/INSTALL - - # patched into a source file above; - # needs to be explicitely passed to not be stripped by fixup - mkdir -p $out/nix-support - echo "${getconf}" > $out/nix-support/dont-strip-getconf - - ''; + ''; meta = { homepage = http://www.rabbitmq.com/; |