Commit 09ebd106 authored by Mario Rodas's avatar Mario Rodas
Browse files

zeek: fix build on darwin

parent f7701b7e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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";
+3 −0
Original line number Diff line number Diff line
@@ -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 \
+1 −1
Original line number Diff line number Diff line
@@ -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 { };