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
835 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 07:11:17 +01:00
rustPlatform.buildRustPackage rec {
pname = "sniffglue";
2024-01-08 06:24:47 +00:00
version = "0.16.0";
2020-04-15 07:11:17 +01:00
src = fetchFromGitHub {
owner = "kpcyrd";
repo = pname;
rev = "v${version}";
hash = "sha256-MOw0WBdpo6dYXsjbUrqoIJl/sjQ4wSAcm4dPxDgTYgY=";
2020-04-15 07:11:17 +01:00
};
2024-01-08 06:24:47 +00:00
cargoHash = "sha256-vnfviiXJ4L/j5M3N+LegOIvLuD6vYJB1QeBgZJVfDnI=";
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
2024-01-24 19:38:39 +00:00
buildInputs = [
libpcap
] ++ lib.optionals stdenv.isLinux [
libseccomp
];
2020-04-15 07:11:17 +01:00
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 ];
2024-01-24 19:38:39 +00:00
platforms = platforms.linux ++ platforms.darwin;
mainProgram = "sniffglue";
2020-04-15 07:11:17 +01:00
};
}