summary refs log tree commit diff
path: root/pkgs/tools/networking/pcapc/default.nix
blob: 94a181eb5ae2b7359918a17c69a8c0fc9c12c4e6 (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
28
29
{ stdenv, fetchFromGitHub, libpcap, cmake }:

stdenv.mkDerivation rec {
  pname = "pcapc";
  version = "1.0.0";

  src = fetchFromGitHub {
    sha256 = "137crs0bb7kh9a8p9g168yj2jrp0h3j3073nwh31jy4nk0g5hlfp";
    rev = "v${version}";
    repo = "pcapc";
    owner = "pfactum";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ libpcap ];

  makeFlags = [ "PREFIX=$(out)" ];

  enableParallelBuilding = true;

  doCheck = false;

  meta = with stdenv.lib; {
    homepage = "https://github.com/pfactum/pcapc";
    description = "Compile libpcap filter expressions into BPF opcodes";
    license = licenses.gpl3;
    platforms = platforms.linux;
  };
}