1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/tools/networking/iperf/2.nix
Profpatsch ff132824f2 iperf2: make binary symlink & prioritize iperf3
If both are in the environment, iperf3 should be used as `bin/iperf`
by default, for more consistency.
2019-06-04 14:37:04 +02:00

29 lines
682 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "iperf-2.0.13";
src = fetchurl {
url = "mirror://sourceforge/iperf2/files/${name}.tar.gz";
sha256 = "1bbq6xr0vrd88zssfiadvw3awyn236yv94fsdl9q2sh9cv4xx2n8";
};
hardeningDisable = [ "format" ];
configureFlags = [ "--enable-fastsampling" ];
postInstall = ''
mv $out/bin/iperf $out/bin/iperf2
ln -s $out/bin/iperf2 $out/bin/iperf
'';
meta = with stdenv.lib; {
homepage = https://sourceforge.net/projects/iperf/;
description = "Tool to measure IP bandwidth using UDP or TCP";
platforms = platforms.unix;
license = licenses.mit;
# prioritize iperf3
priority = 10;
};
}