python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / networking / driftnet / default.nix
blob1f489b7fbc71dc8800d45f2774fa02a451dbbbce
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , fetchpatch
5 , autoreconfHook
6 , cairo
7 , giflib
8 , glib
9 , gtk2-x11
10 , libjpeg
11 , libpcap
12 , libpng
13 , libwebsockets
14 , pkg-config
15 , libuv
16 , openssl
19 stdenv.mkDerivation rec {
20   pname = "driftnet";
21   version = "1.3.0";
23   src = fetchFromGitHub {
24     owner = "deiv";
25     repo = "driftnet";
26     rev = "v${version}";
27     sha256 = "0kd22aqb25kf54jjv3ml8wy8xm7lmbf0xz1wfp31m08cbzsbizib";
28   };
30   # https://github.com/deiv/driftnet/pull/33
31   # remove on version bump from 1.3.0
32   patches = [
33     (fetchpatch {
34       name = "fix-darwin-build";
35       url = "https://github.com/deiv/driftnet/pull/33/commits/bef5f3509ab5710161e9e21ea960a997eada534f.patch";
36       sha256 = "1b7p9fkgp7dxv965l7q7y632s80h3nnrkaqnak2h0hakwv0i4pvm";
37     })
38     # https://github.com/deiv/driftnet/issues/37
39     ./libwebsockets-4.3.0.patch
40   ];
42   enableParallelBuilding = true;
44   nativeBuildInputs = [ pkg-config autoreconfHook ];
46   buildInputs = [
47     cairo
48     giflib
49     glib
50     gtk2-x11
51     libjpeg
52     libpcap
53     libpng
54     libwebsockets
55     openssl
56     libuv
57   ];
59   meta = with lib; {
60     description = "Watches network traffic, and picks out and displays JPEG and GIF images for display";
61     homepage = "https://github.com/deiv/driftnet";
62     maintainers = with maintainers; [ offline ];
63     platforms = platforms.linux ++ platforms.darwin;
64     license = licenses.gpl2Plus;
65   };