3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/sniffglue/default.nix

28 lines
726 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";
2021-05-12 09:26:04 +01:00
version = "0.12.1";
2020-04-15 07:11:17 +01:00
src = fetchFromGitHub {
owner = "kpcyrd";
repo = pname;
rev = "v${version}";
2021-05-12 09:26:04 +01:00
sha256 = "sha256-2LyCiW1MrAahpbzyxot0INPMzo0Vl/JToMZTinCQdgs=";
2020-04-15 07:11:17 +01:00
};
2021-05-12 09:26:04 +01:00
cargoSha256 = "sha256-AGwiyC7Zf8KHQIHfHByL06sdbS4vEXUyj1wGw7Q1N9I=";
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.gpl3Plus;
2020-04-15 07:11:17 +01:00
maintainers = with maintainers; [ xrelkd ];
platforms = platforms.linux;
};
}