mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 14:34:33 +00:00
sniffglue: enable darwin support
This commit is contained in:
parent
89163c38cf
commit
8082387492
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user