2020-11-24 20:58:05 +00:00
|
|
|
{ stdenv, fetchurl, libpcap, tcpdump, Carbon, CoreServices }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tcpreplay";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "4.3.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/appneta/tcpreplay/releases/download/v${version}/tcpreplay-${version}.tar.gz";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "1plgjm3dr9rr5q71s7paqk2wgrvkihbk2yrf9g3zaks3m750497d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
buildInputs = [ libpcap ]
|
|
|
|
++ stdenv.lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
Carbon CoreServices
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-local-libopts"
|
|
|
|
"--disable-libopts-install"
|
|
|
|
"--enable-dynamic-link"
|
|
|
|
"--enable-shared"
|
|
|
|
"--enable-tcpreplay-edit"
|
|
|
|
"--with-libpcap=${libpcap}"
|
|
|
|
"--with-tcpdump=${tcpdump}/bin"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A suite of utilities for editing and replaying network traffic";
|
|
|
|
homepage = "http://tcpreplay.appneta.com/";
|
|
|
|
license = with licenses; [ bsd3 gpl3 ];
|
|
|
|
maintainers = with maintainers; [ eleanor ];
|
2020-11-24 20:58:05 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|