3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/iperf/2.nix

29 lines
684 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
2013-11-08 15:02:51 +00:00
stdenv.mkDerivation rec {
2019-01-30 13:30:39 +00:00
name = "iperf-2.0.13";
src = fetchurl {
url = "mirror://sourceforge/iperf2/files/${name}.tar.gz";
2019-01-30 13:30:39 +00:00
sha256 = "1bbq6xr0vrd88zssfiadvw3awyn236yv94fsdl9q2sh9cv4xx2n8";
};
hardeningDisable = [ "format" ];
configureFlags = [ "--enable-fastsampling" ];
2015-12-23 01:59:47 +00:00
postInstall = ''
mv $out/bin/iperf $out/bin/iperf2
ln -s $out/bin/iperf2 $out/bin/iperf
'';
2013-11-08 15:02:51 +00:00
meta = with stdenv.lib; {
homepage = "https://sourceforge.net/projects/iperf/";
2013-11-08 15:02:51 +00:00
description = "Tool to measure IP bandwidth using UDP or TCP";
platforms = platforms.unix;
license = licenses.mit;
# prioritize iperf3
priority = 10;
};
}