Unverified Commit 531192c8 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #283346 from kpcyrd/sniffglue

sniffglue: enable darwin support
parents 4e4f86fb 80823874
Loading
Loading
Loading
Loading
+14 −3
Original line number Diff line number Diff line
{ 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;
  };
}