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