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

33 lines
897 B
Nix
Raw Normal View History

2016-09-06 11:44:46 -07:00
{ stdenv, fetchurl, openssl, fetchpatch }:
2014-10-04 17:23:00 -07:00
stdenv.mkDerivation rec {
2018-03-03 11:32:57 -08:00
name = "iperf-3.5";
2014-10-04 17:23:00 -07:00
src = fetchurl {
url = "http://downloads.es.net/pub/iperf/${name}.tar.gz";
2018-03-03 11:32:57 -08:00
sha256 = "1m9cyycv70s8nlbgr1lqwr155ixk17np0nzqgwaw3f51vkndk6sk";
2014-10-04 17:23:00 -07:00
};
2017-11-05 15:52:13 -08:00
buildInputs = [ openssl ];
2016-09-06 11:44:46 -07:00
patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [
(fetchpatch {
url = "http://git.alpinelinux.org/cgit/aports/plain/main/iperf3/remove-pg-flags.patch";
name = "remove-pg-flags.patch";
sha256 = "0lnczhass24kgq59drgdipnhjnw4l1cy6gqza7f2ah1qr4q104rm";
})
];
2016-09-06 11:44:46 -07:00
2014-10-04 17:23:00 -07:00
postInstall = ''
ln -s iperf3 $out/bin/iperf
'';
meta = with stdenv.lib; {
homepage = http://software.es.net/iperf/;
description = "Tool to measure IP bandwidth using UDP or TCP";
platforms = platforms.unix;
license = "as-is";
2016-06-23 12:05:06 -07:00
maintainers = with maintainers; [ wkennington fpletz ];
2014-10-04 17:23:00 -07:00
};
}