Skip to content

Commit

Permalink
rabbitmq-server: Fix building on Darwin (#371045)
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Jan 7, 2025
2 parents 97de420 + 836e2c3 commit e7b950a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/by-name/ra/rabbitmq-server/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,17 @@ 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
fi
runHook postInstallCheck
'';

# Needed for the check in installCheckPhase
__darwinAllowLocalNetworking = true;

passthru.tests = {
vm-test = nixosTests.rabbitmq;
};
Expand Down

0 comments on commit e7b950a

Please sign in to comment.