Merge pull request #283346 from kpcyrd/sniffglue

sniffglue: enable darwin support
This commit is contained in:
Nick Cao
2024-01-25 08:52:57 -05:00
committed by GitHub
+14 -3
View File
@@ -1,4 +1,11 @@
{ lib, fetchFromGitHub, rustPlatform, libpcap, libseccomp, pkg-config }:
{ lib
, fetchFromGitHub
, libpcap
, libseccomp
, pkg-config
, rustPlatform
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "sniffglue";
@@ -15,13 +22,17 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libpcap libseccomp ];
buildInputs = [
libpcap
] ++ lib.optionals stdenv.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 = platforms.linux ++ platforms.darwin;
};
}