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

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

32 lines
741 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2013-11-08 15:02:51 +00:00
stdenv.mkDerivation rec {
2021-08-19 10:40:05 +00:00
pname = "iperf";
version = "2.1.4";
src = fetchurl {
2021-08-19 10:40:05 +00:00
url = "mirror://sourceforge/iperf2/files/${pname}-${version}.tar.gz";
sha256 = "1yflnj2ni988nm0p158q8lnkiq2gn2chmvsglyn2gqmqhwp3jaq6";
};
hardeningDisable = [ "format" ];
configureFlags = [ "--enable-fastsampling" ];
2015-12-23 01:59:47 +00:00
2022-12-12 06:44:53 +00:00
makeFlags = [ "AR:=$(AR)" ];
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 15:02:51 +00:00
description = "Tool to measure IP bandwidth using UDP or TCP";
platforms = platforms.unix;
license = licenses.mit;
# prioritize iperf3
priority = 10;
};
}