mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
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
This commit is contained in:
parent
17b5c02975
commit
0e3a28a462
@ -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|'
|
||||
|
Loading…
Reference in New Issue
Block a user