2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libpcap, tcpdump, Carbon, CoreServices }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tcpreplay";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "4.4.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/appneta/tcpreplay/releases/download/v${version}/tcpreplay-${version}.tar.gz";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-RPGPttNHDsr3elG5AaEZ2uFtpb5NQUD/uyeF43rW1L8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
buildInputs = [ libpcap ]
|
2021-01-15 22:18:51 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2020-11-24 20:58:05 +00:00
|
|
|
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}"
|
2021-12-24 04:21:11 +00:00
|
|
|
"--with-tcpdump=${tcpdump}/bin/tcpdump"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A suite of utilities for editing and replaying network traffic";
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://tcpreplay.appneta.com/";
|
|
|
|
license = with licenses; [ bsdOriginalUC gpl3Only ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ eleanor ];
|
2020-11-24 20:58:05 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|