2016-09-06 20:44:46 +02:00
|
|
|
{ stdenv, fetchurl, openssl, fetchpatch }:
|
2014-10-05 02:23:00 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-07-04 16:40:35 +02:00
|
|
|
name = "iperf-3.6";
|
2014-10-05 02:23:00 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://downloads.es.net/pub/iperf/${name}.tar.gz";
|
2018-07-04 16:40:35 +02:00
|
|
|
sha256 = "0vllfmyqiy6nxgbagsx1zrs4pmfawyalzm5l1xcwqq64dpj52pfy";
|
2014-10-05 02:23:00 +02:00
|
|
|
};
|
|
|
|
|
2017-11-06 00:52:13 +01:00
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
2016-09-06 20:44:46 +02:00
|
|
|
patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
|
|
|
|
(fetchpatch {
|
2019-01-30 16:23:24 +01:00
|
|
|
url = "https://git.alpinelinux.org/aports/plain/main/iperf3/remove-pg-flags.patch?id=99ec9e1c84e338629cf1b27b0fdc808bde4d8564";
|
2016-09-06 20:44:46 +02:00
|
|
|
name = "remove-pg-flags.patch";
|
2019-01-30 16:23:24 +01:00
|
|
|
sha256 = "0b3vcw1pdyk10764p4vlglwi1acrm7wz2jjd6li7p11v4rggrb5c";
|
2016-09-06 20:44:46 +02:00
|
|
|
})
|
2018-02-21 19:35:59 +01:00
|
|
|
];
|
2016-09-06 20:44:46 +02:00
|
|
|
|
2014-10-05 02:23:00 +02:00
|
|
|
postInstall = ''
|
|
|
|
ln -s iperf3 $out/bin/iperf
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-01-26 11:01:09 +01:00
|
|
|
homepage = http://software.es.net/iperf/;
|
2014-10-05 02:23:00 +02:00
|
|
|
description = "Tool to measure IP bandwidth using UDP or TCP";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = "as-is";
|
2019-01-26 11:01:09 +01:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2014-10-05 02:23:00 +02:00
|
|
|
};
|
|
|
|
}
|