1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 02:51:18 +00:00
nixpkgs/pkgs/tools/networking/iperf/2.nix

30 lines
709 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2013-11-08 15:02:51 +00:00
stdenv.mkDerivation rec {
2021-08-19 11:40:05 +01:00
pname = "iperf";
version = "2.1.4";
src = fetchurl {
2021-08-19 11:40:05 +01: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
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;
};
}