nixpkgs/pkgs/tools/networking/driftnet/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.4 KiB
Nix
Raw Normal View History

2020-12-29 12:12:18 +03:00
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, cairo
, giflib
, glib
, gtk2-x11
, libjpeg
, libpcap
, libpng
, libwebsockets
, pkg-config
, libuv
, openssl
}:
2015-07-07 12:52:23 +03:00
2020-12-29 12:12:18 +03:00
stdenv.mkDerivation rec {
pname = "driftnet";
2020-12-29 12:12:18 +03:00
version = "1.3.0";
2015-07-07 12:52:23 +03:00
src = fetchFromGitHub {
owner = "deiv";
repo = "driftnet";
2020-12-29 12:12:18 +03:00
rev = "v${version}";
sha256 = "0kd22aqb25kf54jjv3ml8wy8xm7lmbf0xz1wfp31m08cbzsbizib";
2015-07-07 12:52:23 +03:00
};
2020-12-29 12:12:18 +03:00
# https://github.com/deiv/driftnet/pull/33
# remove on version bump from 1.3.0
patches = [
(fetchpatch {
name = "fix-darwin-build";
url = "https://github.com/deiv/driftnet/pull/33/commits/bef5f3509ab5710161e9e21ea960a997eada534f.patch";
sha256 = "1b7p9fkgp7dxv965l7q7y632s80h3nnrkaqnak2h0hakwv0i4pvm";
})
# https://github.com/deiv/driftnet/issues/37
./libwebsockets-4.3.0.patch
2020-12-29 12:12:18 +03:00
];
enableParallelBuilding = true;
nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [
cairo
giflib
glib
gtk2-x11
libjpeg
libpcap
libpng
libwebsockets
openssl
libuv
];
meta = with lib; {
description = "Watches network traffic, and picks out and displays JPEG and GIF images for display";
homepage = "https://github.com/deiv/driftnet";
2015-07-07 12:52:23 +03:00
maintainers = with maintainers; [ offline ];
2020-12-29 12:12:18 +03:00
platforms = platforms.linux ++ platforms.darwin;
license = licenses.gpl2Plus;
2015-07-07 12:52:23 +03:00
};
}