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

28 lines
722 B
Nix
Raw Normal View History

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