nixpkgs-suyu/pkgs/tools/networking/iperf/3.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, openssl, fetchpatch, lksctp-tools }:
2014-10-05 02:23:00 +02:00
stdenv.mkDerivation rec {
pname = "iperf";
2022-03-13 10:31:33 +01:00
version = "3.11";
2014-10-05 02:23:00 +02:00
src = fetchurl {
url = "https://downloads.es.net/pub/iperf/iperf-${version}.tar.gz";
2022-03-13 10:31:33 +01:00
sha256 = "0pvy1cj92phpbldw0bdc0ds70n8irqcyn1ybyis0a6nnz84v936y";
2014-10-05 02:23:00 +02:00
};
buildInputs = [ openssl ] ++ lib.optionals stdenv.isLinux [ lksctp-tools ];
configureFlags = [
"--with-openssl=${openssl.dev}"
];
2017-11-06 00:52:13 +01:00
outputs = [ "out" "man" ];
2021-01-15 10:19:50 +01:00
patches = lib.optionals stdenv.hostPlatform.isMusl [
2016-09-06 20:44:46 +02:00
(fetchpatch {
2019-10-17 18:40:44 +02:00
url = "https://git.alpinelinux.org/aports/plain/main/iperf3/remove-pg-flags.patch?id=7f979fc51ae31d5c695d8481ba84a4afc5080efb";
2016-09-06 20:44:46 +02:00
name = "remove-pg-flags.patch";
2019-10-17 18:40:44 +02:00
sha256 = "0z3zsmf7ln08rg1mmzl8s8jm5gp8x62f5cxiqcmi8dcs2nsxwgbi";
2016-09-06 20:44:46 +02:00
})
];
2016-09-06 20:44:46 +02:00
2014-10-05 02:23:00 +02:00
postInstall = ''
ln -s $out/bin/iperf3 $out/bin/iperf
ln -s $man/share/man/man1/iperf3.1 $man/share/man/man1/iperf.1
2014-10-05 02:23:00 +02:00
'';
meta = with lib; {
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 = licenses.bsd3;
maintainers = with maintainers; [ fpletz ];
2014-10-05 02:23:00 +02:00
};
}