Skip to content

Commit 0fa8a11

Browse files
author
rcarter
committed
iperf2: fix cross compilation
1 parent e29cde9 commit 0fa8a11

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pkgs/by-name/ip/iperf2/package.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
stdenv,
44
fetchurl,
5+
pkgsCross,
56
}:
67

78
stdenv.mkDerivation (finalAttrs: {
@@ -18,16 +19,23 @@ stdenv.mkDerivation (finalAttrs: {
1819

1920
configureFlags = [ "--enable-fastsampling" ];
2021

22+
makeFlags = [ "AR:=$(AR)" ];
23+
2124
postInstall = ''
2225
mv $out/bin/iperf $out/bin/iperf2
2326
ln -s $out/bin/iperf2 $out/bin/iperf
2427
'';
2528

29+
passthru.tests = {
30+
cross-aarch64 = pkgsCross.aarch64-multiplatform.iperf2;
31+
};
32+
2633
meta = {
2734
homepage = "https://sourceforge.net/projects/iperf/";
2835
description = "Tool to measure IP bandwidth using UDP or TCP";
2936
platforms = lib.platforms.unix;
3037
license = lib.licenses.mit;
38+
mainProgram = "iperf2";
3139
maintainers = with lib.maintainers; [ randomizedcoder ];
3240

3341
# prioritize iperf3

0 commit comments

Comments
 (0)