2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2013-11-08 16:02:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-08-19 12:40:05 +02:00
|
|
|
pname = "iperf";
|
|
|
|
version = "2.1.4";
|
2009-03-16 19:39:04 +01:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
src = fetchurl {
|
2021-08-19 12:40:05 +02:00
|
|
|
url = "mirror://sourceforge/iperf2/files/${pname}-${version}.tar.gz";
|
2021-08-20 11:24:46 +02:00
|
|
|
sha256 = "1yflnj2ni988nm0p158q8lnkiq2gn2chmvsglyn2gqmqhwp3jaq6";
|
2009-03-16 19:39:04 +01:00
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2019-01-30 14:30:57 +01:00
|
|
|
configureFlags = [ "--enable-fastsampling" ];
|
2015-12-23 02:59:47 +01:00
|
|
|
|
2019-06-04 14:37:04 +02:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/iperf $out/bin/iperf2
|
|
|
|
ln -s $out/bin/iperf2 $out/bin/iperf
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://sourceforge.net/projects/iperf/";
|
2013-11-08 16:02:51 +01:00
|
|
|
description = "Tool to measure IP bandwidth using UDP or TCP";
|
2014-04-12 18:37:45 +02:00
|
|
|
platforms = platforms.unix;
|
2017-03-27 03:41:22 +02:00
|
|
|
license = licenses.mit;
|
2019-06-04 14:37:04 +02:00
|
|
|
|
|
|
|
# prioritize iperf3
|
|
|
|
priority = 10;
|
2009-03-16 19:39:04 +01:00
|
|
|
};
|
|
|
|
}
|