2021-01-17 04:51:22 +01:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, libpcap, libseccomp, pkg-config }:
|
2020-04-15 08:11:17 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sniffglue";
|
2021-09-15 01:32:37 +02:00
|
|
|
version = "0.13.1";
|
2020-04-15 08:11:17 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kpcyrd";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-15 01:32:37 +02:00
|
|
|
sha256 = "sha256-P8ubw523sw1O6Gpruy1Wa/Y0I3qJgvMdT53wBBoEGhE=";
|
2020-04-15 08:11:17 +02:00
|
|
|
};
|
|
|
|
|
2021-09-15 01:32:37 +02:00
|
|
|
cargoSha256 = "sha256-+Wh+/C9LvYppCghv11e8NKNhiMy0SV4S3nEWA6b1hQk=";
|
2020-04-15 08:11:17 +02:00
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-15 08:11:17 +02:00
|
|
|
|
|
|
|
buildInputs = [ libpcap libseccomp ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Secure multithreaded packet sniffer";
|
|
|
|
homepage = "https://github.com/kpcyrd/sniffglue";
|
2021-03-24 23:24:21 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-15 08:11:17 +02:00
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|