Merge pull request #283346 from kpcyrd/sniffglue

sniffglue: enable darwin support

authored by Nick Cao and committed by GitHub 531192c8 4e4f86fb

+14 -3
+14 -3
pkgs/tools/networking/sniffglue/default.nix
··· 1 - { lib, fetchFromGitHub, rustPlatform, libpcap, libseccomp, pkg-config }: 1 + { lib 2 + , fetchFromGitHub 3 + , libpcap 4 + , libseccomp 5 + , pkg-config 6 + , rustPlatform 7 + , stdenv 8 + }: 2 9 3 10 rustPlatform.buildRustPackage rec { 4 11 pname = "sniffglue"; ··· 15 22 16 23 nativeBuildInputs = [ pkg-config ]; 17 24 18 - buildInputs = [ libpcap libseccomp ]; 25 + buildInputs = [ 26 + libpcap 27 + ] ++ lib.optionals stdenv.isLinux [ 28 + libseccomp 29 + ]; 19 30 20 31 meta = with lib; { 21 32 description = "Secure multithreaded packet sniffer"; 22 33 homepage = "https://github.com/kpcyrd/sniffglue"; 23 34 license = licenses.gpl3Plus; 24 35 maintainers = with maintainers; [ xrelkd ]; 25 - platforms = platforms.linux; 36 + platforms = platforms.linux ++ platforms.darwin; 26 37 }; 27 38 }