rabbitmq-server: Remove unused builder variable

This commit is contained in:
Robert Hensing 2022-09-23 14:43:22 +01:00 committed by Manuel Bärenz
parent 6200d85eb4
commit b6fe86fd45

View File

@ -25,6 +25,17 @@
, nixosTests
}:
let
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
in
stdenv.mkDerivation rec {
pname = "rabbitmq-server";
version = "3.10.8";
@ -48,15 +59,6 @@ stdenv.mkDerivation rec {
export LANG=C.UTF-8 # fix elixir locale warning
'';
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|'