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

30 lines
709 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2013-11-08 16:02:51 +01:00
stdenv.mkDerivation rec {
2021-08-19 12:40:05 +02:00
pname = "iperf";
version = "2.1.4";
src = fetchurl {
2021-08-19 12:40:05 +02:00
url = "mirror://sourceforge/iperf2/files/${pname}-${version}.tar.gz";
sha256 = "1yflnj2ni988nm0p158q8lnkiq2gn2chmvsglyn2gqmqhwp3jaq6";
};
hardeningDisable = [ "format" ];
configureFlags = [ "--enable-fastsampling" ];
2015-12-23 02:59:47 +01:00
postInstall = ''
mv $out/bin/iperf $out/bin/iperf2
ln -s $out/bin/iperf2 $out/bin/iperf
'';
meta = with lib; {
homepage = "https://sourceforge.net/projects/iperf/";
2013-11-08 16:02:51 +01:00
description = "Tool to measure IP bandwidth using UDP or TCP";
platforms = platforms.unix;
license = licenses.mit;
# prioritize iperf3
priority = 10;
};
}