git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
39 lines
848 B
Nix
39 lines
848 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, libpcap
|
|
, libseccomp
|
|
, pkg-config
|
|
, rustPlatform
|
|
, stdenv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sniffglue";
|
|
version = "0.16.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kpcyrd";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-Pp/SJJQFpEU/4GKZQB8BjRGS4hqB850QbSb5WoG6Wh4=";
|
|
};
|
|
|
|
cargoHash = "sha256-/MGrdo8cmodC3oVWk6y8C73gsLKROmNOI9aytPPzA8o=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
libpcap
|
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
libseccomp
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Secure multithreaded packet sniffer";
|
|
homepage = "https://github.com/kpcyrd/sniffglue";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
mainProgram = "sniffglue";
|
|
};
|
|
}
|