nixpkgs-suyu/pkgs/tools/networking/sniffglue/default.nix

28 lines
722 B
Nix
Raw Normal View History

2020-04-15 08:11:17 +02:00
{ lib, fetchFromGitHub, rustPlatform, libpcap, libseccomp, pkgconfig }:
rustPlatform.buildRustPackage rec {
pname = "sniffglue";
2020-06-09 04:19:19 +02:00
version = "0.11.1";
2020-04-15 08:11:17 +02:00
src = fetchFromGitHub {
owner = "kpcyrd";
repo = pname;
rev = "v${version}";
2020-06-09 04:19:19 +02:00
sha256 = "0lkz25z0qy1giss4rnhkx9fvsdd8ckf4z1gqw46zl664x96bb705";
2020-04-15 08:11:17 +02:00
};
2020-06-09 04:19:19 +02:00
cargoSha256 = "01ya9535whi2kviw57f25n8h05ckpb4bq1h7qav6srai97rm937s";
2020-04-15 08:11:17 +02:00
nativeBuildInputs = [ pkgconfig ];
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;
};
}