summary refs log tree commit diff
path: root/pkgs/servers/amqp/rabbitmq-server
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-08-02 16:13:30 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-08-03 12:04:10 +0200
commita6a6de159f01bbfd7c53124c772a22b6066dd12c (patch)
treef34415f6db7e7c56f1e05a10834f71e835f46067 /pkgs/servers/amqp/rabbitmq-server
parent9b06d00d8b586157cd24eee88aa7fd23d9ba56af (diff)
downloadnixpkgs-a6a6de159f01bbfd7c53124c772a22b6066dd12c.tar
nixpkgs-a6a6de159f01bbfd7c53124c772a22b6066dd12c.tar.gz
nixpkgs-a6a6de159f01bbfd7c53124c772a22b6066dd12c.tar.bz2
nixpkgs-a6a6de159f01bbfd7c53124c772a22b6066dd12c.tar.lz
nixpkgs-a6a6de159f01bbfd7c53124c772a22b6066dd12c.tar.xz
nixpkgs-a6a6de159f01bbfd7c53124c772a22b6066dd12c.tar.zst
nixpkgs-a6a6de159f01bbfd7c53124c772a22b6066dd12c.zip
rabbitmq-server: format
Diffstat (limited to 'pkgs/servers/amqp/rabbitmq-server')
-rw-r--r--pkgs/servers/amqp/rabbitmq-server/default.nix55
1 files changed, 38 insertions, 17 deletions
diff --git a/pkgs/servers/amqp/rabbitmq-server/default.nix b/pkgs/servers/amqp/rabbitmq-server/default.nix
index 3f2e595b31f..bfee2031070 100644
--- a/pkgs/servers/amqp/rabbitmq-server/default.nix
+++ b/pkgs/servers/amqp/rabbitmq-server/default.nix
@@ -1,13 +1,32 @@
-{ 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
+{ 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
@@ -17,8 +36,7 @@ stdenv.mkDerivation rec {
   };
 
   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" ];
@@ -33,9 +51,12 @@ stdenv.mkDerivation rec {
   runtimePath = lib.makeBinPath ([
     erlang
     getconf # for getting memory limits
-    socat procps
-    gnused coreutils # used by helper scripts
+    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|'
@@ -53,15 +74,15 @@ stdenv.mkDerivation rec {
     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 ];
+  };
 }