fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / tc / tcptrack / package.nix
blob2c54223cc75cf03f04c278dbfeb6e15c0e4a9bff
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6   ncurses,
7   libpcap,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "tcptrack";
12   version = "unstable-2017-04-29";
14   src = fetchFromGitHub {
15     owner = "bchretien";
16     repo = "tcptrack";
17     rev = "2b096ac103af2884bbd7648cff8adcbadbda9394";
18     sha256 = "0084g9s0ynv1az67j08q9nz4p07bqqz9k6w5lprzj3ljlh0x10gj";
19   };
21   patches = [
22     # Fix pending upstream inclusion for ncurses-6.3 support:
23     #  https://github.com/bchretien/tcptrack/pull/10
24     (fetchpatch {
25       name = "ncurses-6.3.patch";
26       url = "https://github.com/bchretien/tcptrack/commit/409007afbce8ec5a81312a2a4123dd83b62b4494.patch";
27       sha256 = "00641jyr52ksww5bbzvxlprmbb36jnvzg2w1aj1jgnm75jiajcfc";
28     })
29   ];
31   buildInputs = [
32     ncurses
33     libpcap
34   ];
36   env.NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
38   meta = with lib; {
39     inherit (src.meta) homepage;
40     description = "libpcap based program for live TCP connection monitoring";
41     mainProgram = "tcptrack";
42     license = licenses.lgpl21;
43     platforms = platforms.linux;
44     maintainers = [ maintainers.bjornfor ];
45   };