Skip to content

Commit e7b950a

Browse files
authored
rabbitmq-server: Fix building on Darwin (#371045)
2 parents 97de420 + 836e2c3 commit e7b950a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/by-name/ra/rabbitmq-server/package.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,17 @@ stdenv.mkDerivation rec {
112112
doInstallCheck = true;
113113
installCheckPhase = ''
114114
runHook preInstallCheck
115-
out="$(env - LANG=C.utf8 HOME=/build ${placeholder "out"}/bin/rabbitmqctl version)"
115+
out="$(env - LANG=C.utf8 HOME=$TMPDIR ${placeholder "out"}/bin/rabbitmqctl version)"
116116
if [[ "$out" != "$version" ]]; then
117117
echo "Rabbitmq should report version $version, but thinks it's version $out" >&2
118118
exit 1
119119
fi
120120
runHook postInstallCheck
121121
'';
122122

123+
# Needed for the check in installCheckPhase
124+
__darwinAllowLocalNetworking = true;
125+
123126
passthru.tests = {
124127
vm-test = nixosTests.rabbitmq;
125128
};

0 commit comments

Comments
 (0)