git.iko.soy/typeable/nixpkgs
on master help sign in
Adding nuttcp.
commit57625514f4da97b1682abcc9883be319cc352293 authorLluís Batlle i Rossell <viric@viric.name> dateSat 28 Jan 2017, 20:40 (10 years ago) parent8d5b2e6
2 files changed+53
pkgs/tools/networking/nuttcp/default.nix+51 pkgs/top-level/all-packages.nix+2
pkgs/tools/networking/nuttcp/default.nixnew file+51
@@ -0,0 +1,51 @@
1+{ stdenv, fetchurl }:
2+
3+stdenv.mkDerivation rec {
4+ name = "nuttcp-${version}";
5+ version = "8.1.4";
6+
7+ src = fetchurl {
8+ urls = [
9+ "http://nuttcp.net/nuttcp/latest/${name}.c"
10+ "http://nuttcp.net/nuttcp/${name}/${name}.c"
11+ "http://nuttcp.net/nuttcp/beta/${name}.c"
12+ ];
13+ sha256 = "1mygfhwxfi6xg0iycivx98ckak2abc3vwndq74278kpd8g0yyqyh";
14+ };
15+
16+ man = fetchurl {
17+ url = "http://nuttcp.net/nuttcp/${name}/nuttcp.8";
18+ sha256 = "1yang94mcdqg362qbi85b63746hk6gczxrk619hyj91v5763n4vx";
19+ };
20+
21+ unpackPhase = ":";
22+
23+ buildPhase = ''
24+ gcc -O2 -o nuttcp $src
25+ '';
26+
27+ installPhase = ''
28+ mkdir -p $out/bin
29+ cp nuttcp $out/bin
30+ '';
31+
32+ meta = with stdenv.lib; {
33+ description = "Network performance measurement tool";
34+ longDescription = ''
35+ nuttcp is a network performance measurement tool intended for use by
36+ network and system managers. Its most basic usage is to determine the raw
37+ TCP (or UDP) network layer throughput by transferring memory buffers from
38+ a source system across an interconnecting network to a destination
39+ system, either transferring data for a specified time interval, or
40+ alternatively transferring a specified number of bytes. In addition to
41+ reporting the achieved network throughput in Mbps, nuttcp also provides
42+ additional useful information related to the data transfer such as user,
43+ system, and wall-clock time, transmitter and receiver CPU utilization,
44+ and loss percentage (for UDP transfers).
45+ '';
46+ license = licenses.gpl2;
47+ homepage = http://nuttcp.net/;
48+ maintainers = with maintainers; [ viric ];
49+ platforms = platforms.unix;
50+ };
51+}
pkgs/top-level/all-packages.nix+2
@@ -3080,6 +3080,8 @@ with pkgs;
30803080
30813081 numlockx = callPackage ../tools/X11/numlockx { };
30823082
3083+ nuttcp = callPackage ../tools/networking/nuttcp { };
3084+
30833085 nssmdns = callPackage ../tools/networking/nss-mdns { };
30843086
30853087 nwdiag = pythonPackages.nwdiag;