2021-01-17 03:51:22 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, libpcap, libseccomp, pkg-config }:
|
2020-04-15 07:11:17 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sniffglue";
|
2021-10-31 10:48:35 +00:00
|
|
|
version = "0.14.0";
|
2020-04-15 07:11:17 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kpcyrd";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-31 10:48:35 +00:00
|
|
|
sha256 = "sha256-s+2YzfSy7+o0VZZ4j/Cfd6F5GvBytthmDJqrPw+7SU0=";
|
2020-04-15 07:11:17 +01:00
|
|
|
};
|
|
|
|
|
2021-10-31 10:48:35 +00:00
|
|
|
cargoSha256 = "sha256-4G1OGY7/vE8NKBFeuOZzqyZ0DQN4hy/HBO9qrEtBYlM=";
|
2020-04-15 07:11:17 +01:00
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-15 07:11:17 +01:00
|
|
|
|
|
|
|
buildInputs = [ libpcap libseccomp ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Secure multithreaded packet sniffer";
|
|
|
|
homepage = "https://github.com/kpcyrd/sniffglue";
|
2021-03-24 22:24:21 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-15 07:11:17 +01:00
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|