rabbitmq-server: reformat

This commit is contained in:
Samuel Tardieu
2024-10-28 12:18:35 +01:00
parent 7770fb82b9
commit 52cef79ecf
+70 -39
View File
@@ -1,40 +1,44 @@
{ lib
, stdenv
, fetchurl
, erlang
, elixir
, python3
, libxml2
, libxslt
, xmlto
, docbook_xml_dtd_45
, docbook_xsl
, zip
, unzip
, rsync
, getconf
, socat
, procps
, coreutils
, gnused
, systemd
, glibcLocales
, AppKit
, Carbon
, Cocoa
, nixosTests
, which
{
lib,
stdenv,
fetchurl,
erlang,
elixir,
python3,
libxml2,
libxslt,
xmlto,
docbook_xml_dtd_45,
docbook_xsl,
zip,
unzip,
rsync,
getconf,
socat,
procps,
coreutils,
gnused,
systemd,
glibcLocales,
AppKit,
Carbon,
Cocoa,
nixosTests,
which,
}:
let
runtimePath = lib.makeBinPath ([
erlang
getconf # for getting memory limits
socat
procps
gnused
coreutils # used by helper scripts
] ++ lib.optionals stdenv.hostPlatform.isLinux [ systemd ]); # for systemd unit activation check
runtimePath = lib.makeBinPath (
[
erlang
getconf # for getting memory limits
socat
procps
gnused
coreutils # used by helper scripts
]
++ lib.optionals stdenv.hostPlatform.isLinux [ systemd ]
); # for systemd unit activation check
in
stdenv.mkDerivation rec {
@@ -47,19 +51,46 @@ stdenv.mkDerivation rec {
hash = "sha256-mSwjQTLkEWBBbbMDLZ+qldS2YDcUvp8BB+J0+RLQvZE=";
};
nativeBuildInputs = [ unzip xmlto docbook_xml_dtd_45 docbook_xsl zip rsync python3 which ];
nativeBuildInputs = [
unzip
xmlto
docbook_xml_dtd_45
docbook_xsl
zip
rsync
python3
which
];
buildInputs = [ erlang elixir libxml2 libxslt glibcLocales ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ AppKit Carbon Cocoa ];
buildInputs =
[
erlang
elixir
libxml2
libxslt
glibcLocales
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
AppKit
Carbon
Cocoa
];
outputs = [ "out" "man" "doc" ];
outputs = [
"out"
"man"
"doc"
];
installFlags = [
"PREFIX=${placeholder "out"}"
"RMQ_ERLAPP_DIR=${placeholder "out"}"
];
installTargets = [ "install" "install-man" ];
installTargets = [
"install"
"install-man"
];
preBuild = ''
export LANG=C.UTF-8 # fix elixir locale warning