1{ lib
2, stdenv
3, fetchFromGitHub
4, autoreconfHook
5, pkg-config
6, libbfd
7, libnl
8, libpcap
9, ncurses
10, readline
11, zlib
12}:
13
14stdenv.mkDerivation rec {
15 pname = "dropwatch";
16 version = "1.5.4";
17
18 src = fetchFromGitHub {
19 owner = "nhorman";
20 repo = pname;
21 rev = "v${version}";
22 sha256 = "sha256-TbhgcX5WzuigP5/Mj5JuK7O/UKcu70D7dcOcvo4fxeQ=";
23 };
24
25 nativeBuildInputs = [
26 autoreconfHook
27 pkg-config
28 ];
29 buildInputs = [
30 libbfd
31 libnl
32 libpcap
33 ncurses
34 readline
35 zlib
36 ];
37
38 enableParallelBuilding = true;
39
40 meta = with lib; {
41 description = "Linux kernel dropped packet monitor";
42 homepage = "https://github.com/nhorman/dropwatch";
43 license = licenses.gpl2Plus;
44 platforms = platforms.linux;
45 maintainers = with maintainers; [ c0bw3b ];
46 };
47}