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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
726 B
Nix
Raw Normal View History

2021-01-17 06:51:22 +03:00
{ lib, fetchFromGitHub, rustPlatform, libpcap, libseccomp, pkg-config }:
2020-04-15 09:11:17 +03:00
rustPlatform.buildRustPackage rec {
pname = "sniffglue";
2022-03-05 20:42:17 +03:00
version = "0.15.0";
2020-04-15 09:11:17 +03:00
src = fetchFromGitHub {
owner = "kpcyrd";
repo = pname;
rev = "v${version}";
2022-03-05 20:42:17 +03:00
sha256 = "sha256-8SkwdPaKHf0ZE/MeM4yOe2CpQvZzIHf5d06iM7KPAT8=";
2020-04-15 09:11:17 +03:00
};
2022-03-05 20:42:17 +03:00
cargoSha256 = "sha256-UGvFLW48sakNuV3eXBpCxaHOrveQPXkynOayMK6qs4g=";
2020-04-15 09:11:17 +03:00
2021-01-17 06:51:22 +03:00
nativeBuildInputs = [ pkg-config ];
2020-04-15 09:11:17 +03:00
buildInputs = [ libpcap libseccomp ];
meta = with lib; {
description = "Secure multithreaded packet sniffer";
homepage = "https://github.com/kpcyrd/sniffglue";
license = licenses.gpl3Plus;
2020-04-15 09:11:17 +03:00
maintainers = with maintainers; [ xrelkd ];
platforms = platforms.linux;
};
}