summary refs log tree commit diff
path: root/pkgs/applications/networking/ids/daq/default.nix
blob: 26ae9e7a58195cdd830d3d4d3ad7cd441579a40f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, stdenv, fetchurl, flex, bison, libpcap, libdnet, libnfnetlink, libnetfilter_queue}:

stdenv.mkDerivation rec {
  name = "daq-2.2.2";

  src = fetchurl {
    name = "${name}.tar.gz";
    url = "https://snort.org/downloads/archive/snort/${name}.tar.gz";
    sha256 = "0yvzscy7vqj7s5rccza0f7p6awghfm3yaxihx1h57lqspg51in3w";
  };

  buildInputs = [ flex bison libpcap libdnet libnfnetlink libnetfilter_queue];

  configureFlags = [
    "--enable-nfq-module=yes"
    "--with-dnet-includes=${libdnet}/includes"
    "--with-dnet-libraries=${libdnet}/lib"
  ];

  meta = {
    description = "Data AcQuisition library (DAQ), for packet I/O";
    homepage = "https://www.snort.org";
    maintainers = with lib.maintainers; [ aycanirican ];
    license = lib.licenses.gpl2;
    platforms = with lib.platforms; linux;
  };
}