mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 23:24:35 +00:00
b1f04fe156
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/tcpreplay/versions
32 lines
882 B
Nix
32 lines
882 B
Nix
{ stdenv, fetchurl, libpcap, tcpdump }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "tcpreplay-${version}";
|
|
version = "4.3.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/appneta/tcpreplay/releases/download/v${version}/tcpreplay-${version}.tar.gz";
|
|
sha256 = "0d2ywaxq0iaa1kfhgsfhsk1c4w4lakxafsw90dn4m6k82486dflm";
|
|
};
|
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
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 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|