mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00
zeek: fix build on darwin
This commit is contained in:
parent
f7701b7e1e
commit
09ebd10607
@ -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";
|
||||
|
@ -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 \
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user