27 lines
722 B
Nix
27 lines
722 B
Nix
{ lib, fetchFromGitHub, rustPlatform, libpcap, libseccomp, pkg-config }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sniffglue";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kpcyrd";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-bvLkeC5Hm1enaWJtYmnnINgpSO3tlg1SsEzeMSF9OXk=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-BUo3Y2tLvhOrk2w2GzYeWKpXH7TAOEdBI6vVtW2/cCs=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ libpcap libseccomp ];
|
|
|
|
meta = with lib; {
|
|
description = "Secure multithreaded packet sniffer";
|
|
homepage = "https://github.com/kpcyrd/sniffglue";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|