Skip to content

Commit

Permalink
rabbitmq-server: Fix building on Darwin
Browse files Browse the repository at this point in the history
On Darwin, settin HOME=/build before calling rabbitmqctl doesn't work:
it produces an error while trying to create a file in /build because the
/build directory doesn't exist. It also doesn't work when building using
"nix develop". So, we set HOME=$TMPDIR instead which does work in those
cases.
  • Loading branch information
Palmer Cox committed Jan 5, 2025
1 parent 77aa69a commit 1ebba61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/by-name/ra/rabbitmq-server/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ stdenv.mkDerivation rec {
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
out="$(env - LANG=C.utf8 HOME=/build ${placeholder "out"}/bin/rabbitmqctl version)"
out="$(env - LANG=C.utf8 HOME=$TMPDIR ${placeholder "out"}/bin/rabbitmqctl version)"
if [[ "$out" != "$version" ]]; then
echo "Rabbitmq should report version $version, but thinks it's version $out" >&2
exit 1
Expand Down

0 comments on commit 1ebba61

Please sign in to comment.