3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/driftnet/default.nix

65 lines
1.3 KiB
Nix
Raw Normal View History

2020-12-29 09:12:18 +00:00
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, cairo
, giflib
, glib
, gtk2-x11
, libjpeg
, libpcap
, libpng
, libwebsockets
, pkg-config
, libuv
, openssl
}:
2015-07-07 10:52:23 +01:00
2020-12-29 09:12:18 +00:00
stdenv.mkDerivation rec {
pname = "driftnet";
2020-12-29 09:12:18 +00:00
version = "1.3.0";
2015-07-07 10:52:23 +01:00
src = fetchFromGitHub {
owner = "deiv";
repo = "driftnet";
2020-12-29 09:12:18 +00:00
rev = "v${version}";
sha256 = "0kd22aqb25kf54jjv3ml8wy8xm7lmbf0xz1wfp31m08cbzsbizib";
2015-07-07 10:52:23 +01:00
};
2020-12-29 09:12:18 +00: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";
})
];
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 10:52:23 +01:00
maintainers = with maintainers; [ offline ];
2020-12-29 09:12:18 +00:00
platforms = platforms.linux ++ platforms.darwin;
2018-09-10 20:22:10 +01:00
license = licenses.gpl2;
2015-07-07 10:52:23 +01:00
};
}