zeek: fix build on darwin

This commit is contained in:
Mario Rodas 2023-10-15 14:41:00 +02:00
parent f7701b7e1e
commit 09ebd10607
3 changed files with 6 additions and 1 deletions

View File

@ -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";

View File

@ -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 \

View File

@ -7882,7 +7882,7 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
zeek = callPackage ../applications/networking/ids/zeek { };
zeek = darwin.apple_sdk_11_0.callPackage ../applications/networking/ids/zeek { };
zeekscript = callPackage ../tools/security/zeekscript { };