Commit b6fe86fd authored by Robert Hensing's avatar Robert Hensing Committed by Manuel Bärenz
Browse files

rabbitmq-server: Remove unused builder variable

parent 6200d85e
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -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|'