base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / networking / tcpreplay / default.nix
blobf993ae0138bc2d598895abbb1de3015a2d5fcb3f
1 { lib, stdenv, fetchurl, libpcap, tcpdump, Carbon, CoreServices }:
3 stdenv.mkDerivation rec {
4   pname = "tcpreplay";
5   version = "4.5.1";
7   src = fetchurl {
8     url = "https://github.com/appneta/tcpreplay/releases/download/v${version}/tcpreplay-${version}.tar.gz";
9     sha256 = "sha256-Leeb/Wfsksqa4v+1BFbdHVP/QPP6cbQixl6AYgE8noU=";
10   };
12   buildInputs = [ libpcap ]
13     ++ lib.optionals stdenv.hostPlatform.isDarwin [
14       Carbon CoreServices
15     ];
18   configureFlags = [
19     "--disable-local-libopts"
20     "--disable-libopts-install"
21     "--enable-dynamic-link"
22     "--enable-shared"
23     "--enable-tcpreplay-edit"
24     "--with-libpcap=${libpcap}"
25     "--with-tcpdump=${tcpdump}/bin/tcpdump"
26   ];
28   meta = with lib; {
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;
34   };