diff options
author | Tae Sandoval <tssm@users.noreply.github.com> | 2020-05-31 17:38:48 +0200 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2020-05-31 13:41:04 -0400 |
commit | 0e3a28a4627f05d4e0c1ac1492f0844f64bd544e (patch) | |
tree | 7d5b7074cfc3670a2564b5a34e0787ff5ea979f3 /pkgs/servers/amqp/rabbitmq-server | |
parent | 17b5c029759502b3a02bd4b2310c5bfef3f7c41c (diff) |
rabbitmq: fix darwin build
ed16f83 made all dependencies explicit, including systemd, which makes the build step to fail on macOS. Here systemd is added to runtimePath only if the target system is Linux
Diffstat (limited to 'pkgs/servers/amqp/rabbitmq-server')
-rw-r--r-- | pkgs/servers/amqp/rabbitmq-server/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/servers/amqp/rabbitmq-server/default.nix b/pkgs/servers/amqp/rabbitmq-server/default.nix index 51b5ef06ffaa9..f81fef3cbe861 100644 --- a/pkgs/servers/amqp/rabbitmq-server/default.nix +++ b/pkgs/servers/amqp/rabbitmq-server/default.nix @@ -29,12 +29,12 @@ stdenv.mkDerivation rec { export LANG=C.UTF-8 # fix elixir locale warning ''; - runtimePath = stdenv.lib.makeBinPath [ + runtimePath = stdenv.lib.makeBinPath ([ erlang getconf # for getting memory limits - socat systemd procps # for systemd unit activation check + socat procps gnused coreutils # used by helper scripts - ]; + ] ++ stdenv.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|' |