We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e29cde9 commit 0fa8a11Copy full SHA for 0fa8a11
1 file changed
pkgs/by-name/ip/iperf2/package.nix
@@ -2,6 +2,7 @@
2
lib,
3
stdenv,
4
fetchurl,
5
+ pkgsCross,
6
}:
7
8
stdenv.mkDerivation (finalAttrs: {
@@ -18,16 +19,23 @@ stdenv.mkDerivation (finalAttrs: {
18
19
20
configureFlags = [ "--enable-fastsampling" ];
21
22
+ makeFlags = [ "AR:=$(AR)" ];
23
+
24
postInstall = ''
25
mv $out/bin/iperf $out/bin/iperf2
26
ln -s $out/bin/iperf2 $out/bin/iperf
27
'';
28
29
+ passthru.tests = {
30
+ cross-aarch64 = pkgsCross.aarch64-multiplatform.iperf2;
31
+ };
32
33
meta = {
34
homepage = "https://sourceforge.net/projects/iperf/";
35
description = "Tool to measure IP bandwidth using UDP or TCP";
36
platforms = lib.platforms.unix;
37
license = lib.licenses.mit;
38
+ mainProgram = "iperf2";
39
maintainers = with lib.maintainers; [ randomizedcoder ];
40
41
# prioritize iperf3
0 commit comments