From 63b5de1e53849969ae404ce3502dd60ca7f53ef5 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Mon, 27 Nov 2023 00:36:54 +0100 Subject: [PATCH] kapacitor: fix aarch64-darwin build --- pkgs/servers/monitoring/kapacitor/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/servers/monitoring/kapacitor/default.nix b/pkgs/servers/monitoring/kapacitor/default.nix index 663407f712f95..fe1cf89fd2b44 100644 --- a/pkgs/servers/monitoring/kapacitor/default.nix +++ b/pkgs/servers/monitoring/kapacitor/default.nix @@ -92,6 +92,12 @@ buildGoModule rec { rm server/server_test.go ''; + # Tests start http servers which need to bind to local addresses, + # but that fails in the Darwin sandbox by default unless this option is turned on + # Error is: panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: operation not permitted + # See also https://github.com/NixOS/nix/pull/1646 + __darwinAllowLocalNetworking = true; + meta = with lib; { description = "Open source framework for processing, monitoring, and alerting on time series data"; homepage = "https://influxdata.com/time-series-platform/kapacitor/";