2023-01-08 09:20:06 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-12-29 09:12:18 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, cairo
|
2023-01-08 09:20:06 +00:00
|
|
|
, fetchFromGitHub
|
2020-12-29 09:12:18 +00:00
|
|
|
, giflib
|
|
|
|
, glib
|
|
|
|
, gtk2-x11
|
|
|
|
, libjpeg
|
|
|
|
, libpcap
|
|
|
|
, libpng
|
|
|
|
, libuv
|
2023-01-08 09:20:06 +00:00
|
|
|
, libwebsockets
|
2023-01-08 09:24:22 +00:00
|
|
|
, libwebp
|
2020-12-29 09:12:18 +00:00
|
|
|
, openssl
|
2023-01-08 09:20:06 +00:00
|
|
|
, pkg-config
|
2020-12-29 09:12:18 +00:00
|
|
|
}:
|
2015-07-07 09:52:23 +00:00
|
|
|
|
2020-12-29 09:12:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "driftnet";
|
2023-01-08 09:24:22 +00:00
|
|
|
version = "1.4.0";
|
2015-07-07 09:52:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deiv";
|
|
|
|
repo = "driftnet";
|
2023-01-08 09:20:06 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-08 09:24:22 +00:00
|
|
|
hash = "sha256-szmezYnszlRanq8pMD0CIGA+zTYGSwSHcDaZ2Gx1KCA=";
|
2015-07-07 09:52:23 +00:00
|
|
|
};
|
|
|
|
|
2020-12-29 09:12:18 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-01-08 09:20:06 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
autoreconfHook
|
|
|
|
];
|
2020-12-29 09:12:18 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
giflib
|
|
|
|
glib
|
|
|
|
gtk2-x11
|
|
|
|
libjpeg
|
|
|
|
libpcap
|
|
|
|
libpng
|
2023-01-08 09:20:06 +00:00
|
|
|
libuv
|
2020-12-29 09:12:18 +00:00
|
|
|
libwebsockets
|
2023-01-08 09:24:22 +00:00
|
|
|
libwebp
|
2020-12-29 09:12:18 +00:00
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "Watches network traffic, and picks out and displays JPEG and GIF images for display";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/deiv/driftnet";
|
2023-01-08 09:20:06 +00:00
|
|
|
changelog = "https://github.com/deiv/driftnet/releases/tag/v${version}";
|
|
|
|
license = licenses.gpl2Plus;
|
2015-07-07 09:52:23 +00:00
|
|
|
maintainers = with maintainers; [ offline ];
|
2020-12-29 09:12:18 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2015-07-07 09:52:23 +00:00
|
|
|
};
|
|
|
|
}
|