anchor.diff:    };
   
     nativeBuildInputs = [ unzip xmlto docbook_xml_dtd_45 docbook_xsl zip rsync ];
  -  buildInputs =
  -    [ erlang elixir python libxml2 libxslt glibcLocales ]
  +  buildInputs = [ erlang elixir python libxml2 libxslt glibcLocales ]
       ++ lib.optionals stdenv.isDarwin [ AppKit Carbon Cocoa ];
   
     outputs = [ "out" "man" "doc" ];
  
positive.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|'
  
negative.code:     rm $out/INSTALL
    '';
  
    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 ];
    };
  }
  