2017-01-28 19:40:21 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nuttcp";
|
2017-01-28 19:40:21 +00:00
|
|
|
version = "8.1.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
2019-08-15 13:41:18 +01:00
|
|
|
"http://nuttcp.net/nuttcp/latest/${pname}-${version}.c"
|
|
|
|
"http://nuttcp.net/nuttcp/${pname}-${version}/${pname}-${version}.c"
|
|
|
|
"http://nuttcp.net/nuttcp/beta/${pname}-${version}.c"
|
2017-01-28 19:40:21 +00:00
|
|
|
];
|
|
|
|
sha256 = "1mygfhwxfi6xg0iycivx98ckak2abc3vwndq74278kpd8g0yyqyh";
|
|
|
|
};
|
|
|
|
|
|
|
|
man = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://nuttcp.net/nuttcp/${pname}-${version}/nuttcp.8";
|
2017-01-28 19:40:21 +00:00
|
|
|
sha256 = "1yang94mcdqg362qbi85b63746hk6gczxrk619hyj91v5763n4vx";
|
|
|
|
};
|
|
|
|
|
2019-06-19 16:45:34 +01:00
|
|
|
dontUnpack = true;
|
2017-01-28 19:40:21 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
2017-04-08 04:56:09 +01:00
|
|
|
cc -O2 -o nuttcp $src
|
2017-01-28 19:40:21 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp nuttcp $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Network performance measurement tool";
|
|
|
|
longDescription = ''
|
|
|
|
nuttcp is a network performance measurement tool intended for use by
|
|
|
|
network and system managers. Its most basic usage is to determine the raw
|
|
|
|
TCP (or UDP) network layer throughput by transferring memory buffers from
|
|
|
|
a source system across an interconnecting network to a destination
|
|
|
|
system, either transferring data for a specified time interval, or
|
|
|
|
alternatively transferring a specified number of bytes. In addition to
|
|
|
|
reporting the achieved network throughput in Mbps, nuttcp also provides
|
|
|
|
additional useful information related to the data transfer such as user,
|
|
|
|
system, and wall-clock time, transmitter and receiver CPU utilization,
|
|
|
|
and loss percentage (for UDP transfers).
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://nuttcp.net/";
|
2018-07-22 20:50:19 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-01-28 19:40:21 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|