1 { lib, stdenv, fetchurl, libpcap, tcpdump, Carbon, CoreServices }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/appneta/tcpreplay/releases/download/v${version}/tcpreplay-${version}.tar.gz";
9 sha256 = "sha256-Leeb/Wfsksqa4v+1BFbdHVP/QPP6cbQixl6AYgE8noU=";
12 buildInputs = [ libpcap ]
13 ++ lib.optionals stdenv.hostPlatform.isDarwin [
19 "--disable-local-libopts"
20 "--disable-libopts-install"
21 "--enable-dynamic-link"
23 "--enable-tcpreplay-edit"
24 "--with-libpcap=${libpcap}"
25 "--with-tcpdump=${tcpdump}/bin/tcpdump"
29 description = "Suite of utilities for editing and replaying network traffic";
30 homepage = "https://tcpreplay.appneta.com/";
31 license = with licenses; [ bsdOriginalUC gpl3Only ];
32 maintainers = with maintainers; [ eleanor ];
33 platforms = platforms.unix;