anchor.diff:      rm $out/INSTALL
     '';
   
  -  meta = {
  -    homepage = "https://www.rabbitmq.com/";
  -    description = "An implementation of the AMQP messaging protocol";
  -    license = lib.licenses.mpl20;
  -    platforms = lib.platforms.unix;
  -    maintainers = with lib.maintainers; [ Profpatsch ];
  -  };
  -
     passthru.tests = {
       vm-test = nixosTests.rabbitmq;
     };
  +
  +  meta = with lib; {
  +    homepage = "https://www.rabbitmq.com/";
  +    description = "An implementation of the AMQP messaging protocol";
  +    license = licenses.mpl20;
  +    platforms = platforms.unix;
  +    maintainers = with maintainers; [ Profpatsch ];
  +  };
   }
  
positive.code: { lib, stdenv, fetchurl, erlang, elixir, python, libxml2, libxslt, xmlto
  , docbook_xml_dtd_45, docbook_xsl, zip, unzip, rsync, getconf, socat
  , procps, coreutils, gnused, systemd, glibcLocales
  , AppKit, Carbon, Cocoa
  , nixosTests
  }:
  
  stdenv.mkDerivation rec {
    pname = "rabbitmq-server";
  
    version = "3.9.1";
  
    # when updating, consider bumping elixir version in all-packages.nix
  
negative.code:   runtimePath = lib.makeBinPath ([
      erlang
      getconf # for getting memory limits
      socat
      procps
      gnused
      coreutils # used by helper scripts
    ] ++ lib.optionals stdenv.isLinux [ systemd ]); # for systemd unit activation check
  
    postInstall = ''
      # rabbitmq-env calls to sed/coreutils, so provide everything early
      sed -i $out/sbin/rabbitmq-env -e '2s|^|PATH=${runtimePath}\''${PATH:+:}\$PATH/\n|'
  