depot/third_party/nixpkgs/pkgs/tools/networking/udpreplay/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

24 lines
757 B
Nix

{ stdenv, cmake, libpcap, fetchFromGitHub, lib }:
stdenv.mkDerivation rec {
pname = "updreplay";
version = "1.1.0";
nativeBuildInputs = [ cmake ];
buildInputs = [ libpcap ];
src = fetchFromGitHub {
owner = "rigtorp";
repo = "udpreplay";
rev = "v${version}";
hash = "sha256-kF9a3pjQbFKf25NKyK7uSq0AAO6JK7QeChLhm9Z3wEA=";
};
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;
};
}