3e2acf8aff
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
35 lines
991 B
Nix
35 lines
991 B
Nix
{ lib, stdenv, fetchurl, libpcap, tcpdump, Carbon, CoreServices }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tcpreplay";
|
|
version = "4.3.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/appneta/tcpreplay/releases/download/v${version}/tcpreplay-${version}.tar.gz";
|
|
sha256 = "sha256-7gZTEIBsIuL9NvAU4euzMbmKfsTblY6Rw9nL2gZA2Sw=";
|
|
};
|
|
|
|
buildInputs = [ libpcap ]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
Carbon CoreServices
|
|
];
|
|
|
|
|
|
configureFlags = [
|
|
"--disable-local-libopts"
|
|
"--disable-libopts-install"
|
|
"--enable-dynamic-link"
|
|
"--enable-shared"
|
|
"--enable-tcpreplay-edit"
|
|
"--with-libpcap=${libpcap}"
|
|
"--with-tcpdump=${tcpdump}/bin"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A suite of utilities for editing and replaying network traffic";
|
|
homepage = "https://tcpreplay.appneta.com/";
|
|
license = with licenses; [ bsdOriginalUC gpl3Only ];
|
|
maintainers = with maintainers; [ eleanor ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|