biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / misc / tcptrack / default.nix
blob5c1fe8c5b9b705b57e84cc4f996cb4a7e27f1779
1 { lib, stdenv, fetchFromGitHub, fetchpatch, ncurses, libpcap }:
3 stdenv.mkDerivation rec {
4   pname = "tcptrack";
5   version = "unstable-2017-04-29";
7   src = fetchFromGitHub {
8     owner = "bchretien";
9     repo = "tcptrack";
10     rev = "2b096ac103af2884bbd7648cff8adcbadbda9394";
11     sha256 = "0084g9s0ynv1az67j08q9nz4p07bqqz9k6w5lprzj3ljlh0x10gj";
12   };
14   patches = [
15     # Fix pending upstream inclusion for ncurses-6.3 support:
16     #  https://github.com/bchretien/tcptrack/pull/10
17     (fetchpatch {
18       name = "ncurses-6.3.patch";
19       url = "https://github.com/bchretien/tcptrack/commit/409007afbce8ec5a81312a2a4123dd83b62b4494.patch";
20       sha256 = "00641jyr52ksww5bbzvxlprmbb36jnvzg2w1aj1jgnm75jiajcfc";
21     })
22   ];
24   buildInputs = [ ncurses libpcap ];
26   env.NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
28   meta = with lib; {
29     inherit (src.meta) homepage;
30     description = "libpcap based program for live TCP connection monitoring";
31     mainProgram = "tcptrack";
32     license = licenses.lgpl21;
33     platforms = platforms.linux;
34     maintainers = [ maintainers.bjornfor maintainers.vrthra ];
35   };