depot/third_party/nixpkgs/pkgs/tools/networking/udpreplay/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

24 lines
757 B
Nix

{ stdenv, cmake, libpcap, fetchFromGitHub, lib }:
stdenv.mkDerivation rec {
pname = "updreplay";
version = "1.0.0";
nativeBuildInputs = [ cmake ];
buildInputs = [ libpcap ];
src = fetchFromGitHub {
owner = "rigtorp";
repo = "udpreplay";
rev = "v${version}";
hash = "sha256-8cp1RyVBnq3vx2LPkAx7ktmdLo0bSq9UWlbb/DrJxpc=";
};
meta = with lib; {
description = "Replay UDP packets from a pcap file";
longDescription = ''
udpreplay is a lightweight alternative to tcpreplay for replaying UDP unicast and multicast streams from a pcap file.
'';
homepage = "https://github.com/rigtorp/udpreplay";
license = licenses.mit;
maintainers = [ maintainers.considerate ];
platforms = platforms.linux;
};
}