diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2023-10-15 14:41:00 +0200 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2023-10-15 14:41:00 +0200 |
commit | 09ebd106071fa0de56b722a4ec65c4bde58149dc (patch) | |
tree | 4107ef3974ca0f3901bae76d7bd02db633fe5081 /pkgs/applications/networking/ids | |
parent | f7701b7e1e6b09e953164e76d42b04f5fb86f93f (diff) |
zeek: fix build on darwin
Diffstat (limited to 'pkgs/applications/networking/ids')
-rw-r--r-- | pkgs/applications/networking/ids/zeek/broker/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/networking/ids/zeek/default.nix | 3 |
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 977dc18b9c7e4..cfb8cc685a109 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 5b9ca68df1f75..8ab64a6e57dd7 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 \ |