Skip to content

Commit

Permalink
kapacitor: fix aarch64-darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Nov 26, 2023
1 parent 8e6e709 commit 63b5de1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/servers/monitoring/kapacitor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
Expand Down

0 comments on commit 63b5de1

Please sign in to comment.