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