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

28 lines
724 B
Nix
Raw Normal View History

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";
2020-06-09 03:19:19 +01:00
version = "0.11.1";
2020-04-15 07:11:17 +01:00
src = fetchFromGitHub {
owner = "kpcyrd";
repo = pname;
rev = "v${version}";
2020-06-09 03:19:19 +01:00
sha256 = "0lkz25z0qy1giss4rnhkx9fvsdd8ckf4z1gqw46zl664x96bb705";
2020-04-15 07:11:17 +01:00
};
2020-06-09 03:19:19 +01:00
cargoSha256 = "01ya9535whi2kviw57f25n8h05ckpb4bq1h7qav6srai97rm937s";
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";
license = licenses.gpl3;
maintainers = with maintainers; [ xrelkd ];
platforms = platforms.linux;
};
}