10 stdenv.mkDerivation rec {
15 url = "https://downloads.es.net/pub/iperf/iperf-${version}.tar.gz";
16 hash = "sha256-hEBMqEMbWV6GxHPY8j2LsQKBAAHxX+r2EO/9OzGHiKo=";
19 buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isLinux [ lksctp-tools ];
20 configureFlags = [ "--with-openssl=${openssl.dev}" ];
27 patches = lib.optionals stdenv.hostPlatform.isMusl [
29 url = "https://git.alpinelinux.org/aports/plain/main/iperf3/remove-pg-flags.patch?id=7f979fc51ae31d5c695d8481ba84a4afc5080efb";
30 name = "remove-pg-flags.patch";
31 sha256 = "0z3zsmf7ln08rg1mmzl8s8jm5gp8x62f5cxiqcmi8dcs2nsxwgbi";
36 ln -s $out/bin/iperf3 $out/bin/iperf
37 ln -s $man/share/man/man1/iperf3.1 $man/share/man/man1/iperf.1
41 homepage = "https://software.es.net/iperf/";
42 description = "Tool to measure IP bandwidth using UDP or TCP";
43 platforms = lib.platforms.unix;
44 license = lib.licenses.bsd3;
45 mainProgram = "iperf3";
46 maintainers = with lib.maintainers; [ fpletz ];