nixpkgs/pkgs/by-name/sn/sniffglue/package.nix

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

40 lines
848 B
Nix
Raw Normal View History

2024-01-24 19:38:39 +00:00
{ lib
, fetchFromGitHub
, libpcap
, libseccomp
, pkg-config
, rustPlatform
, stdenv
}:
2020-04-15 06:11:17 +00:00
rustPlatform.buildRustPackage rec {
pname = "sniffglue";
2024-09-09 02:34:43 +00:00
version = "0.16.1";
2020-04-15 06:11:17 +00:00
src = fetchFromGitHub {
owner = "kpcyrd";
repo = pname;
rev = "v${version}";
2024-09-09 02:34:43 +00:00
hash = "sha256-Pp/SJJQFpEU/4GKZQB8BjRGS4hqB850QbSb5WoG6Wh4=";
2020-04-15 06:11:17 +00:00
};
2024-09-09 02:34:43 +00:00
cargoHash = "sha256-/MGrdo8cmodC3oVWk6y8C73gsLKROmNOI9aytPPzA8o=";
2020-04-15 06:11:17 +00:00
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ pkg-config ];
2020-04-15 06:11:17 +00:00
2024-01-24 19:38:39 +00:00
buildInputs = [
libpcap
] ++ lib.optionals stdenv.hostPlatform.isLinux [
libseccomp
];
2020-04-15 06:11:17 +00:00
meta = with lib; {
description = "Secure multithreaded packet sniffer";
homepage = "https://github.com/kpcyrd/sniffglue";
license = licenses.gpl3Plus;
2020-04-15 06:11:17 +00:00
maintainers = with maintainers; [ xrelkd ];
2024-01-24 19:38:39 +00:00
platforms = platforms.linux ++ platforms.darwin;
mainProgram = "sniffglue";
2020-04-15 06:11:17 +00:00
};
}