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