summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/ids
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-10-15 14:41:00 +0200
committerMario Rodas <marsam@users.noreply.github.com>2023-10-15 14:41:00 +0200
commit09ebd106071fa0de56b722a4ec65c4bde58149dc (patch)
tree4107ef3974ca0f3901bae76d7bd02db633fe5081 /pkgs/applications/networking/ids
parentf7701b7e1e6b09e953164e76d42b04f5fb86f93f (diff)
zeek: fix build on darwin
Diffstat (limited to 'pkgs/applications/networking/ids')
-rw-r--r--pkgs/applications/networking/ids/zeek/broker/default.nix2
-rw-r--r--pkgs/applications/networking/ids/zeek/default.nix3
2 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/networking/ids/zeek/broker/default.nix b/pkgs/applications/networking/ids/zeek/broker/default.nix
index 977dc18b9c7e..cfb8cc685a10 100644
--- a/pkgs/applications/networking/ids/zeek/broker/default.nix
+++ b/pkgs/applications/networking/ids/zeek/broker/default.nix
@@ -74,6 +74,8 @@ stdenv.mkDerivation {
"-DPY_MOD_INSTALL_DIR=${placeholder "py"}/${python3.sitePackages}/"
];
+ env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-faligned-allocation";
+
meta = with lib; {
description = "Zeek's Messaging Library";
homepage = "https://github.com/zeek/broker";
diff --git a/pkgs/applications/networking/ids/zeek/default.nix b/pkgs/applications/networking/ids/zeek/default.nix
index 5b9ca68df1f7..8ab64a6e57dd 100644
--- a/pkgs/applications/networking/ids/zeek/default.nix
+++ b/pkgs/applications/networking/ids/zeek/default.nix
@@ -60,6 +60,7 @@ stdenv.mkDerivation rec {
libkqueue
] ++ lib.optionals stdenv.isDarwin [
gettext
+ python3
];
postPatch = ''
@@ -80,6 +81,8 @@ stdenv.mkDerivation rec {
"-DLIBKQUEUE_ROOT_DIR=${libkqueue}"
];
+ env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-faligned-allocation";
+
postInstall = ''
for file in $out/share/zeek/base/frameworks/notice/actions/pp-alarms.zeek $out/share/zeek/base/frameworks/notice/main.zeek; do
substituteInPlace $file \