mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
iperf2: fix cross compilation
This commit is contained in:
parent
e29cde93f2
commit
0fa8a1100a
1 changed files with 8 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
pkgsCross,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
|
|
@ -18,16 +19,23 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
|
||||
configureFlags = [ "--enable-fastsampling" ];
|
||||
|
||||
makeFlags = [ "AR:=$(AR)" ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/iperf $out/bin/iperf2
|
||||
ln -s $out/bin/iperf2 $out/bin/iperf
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
cross-aarch64 = pkgsCross.aarch64-multiplatform.iperf2;
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "https://sourceforge.net/projects/iperf/";
|
||||
description = "Tool to measure IP bandwidth using UDP or TCP";
|
||||
platforms = lib.platforms.unix;
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "iperf2";
|
||||
maintainers = with lib.maintainers; [ randomizedcoder ];
|
||||
|
||||
# prioritize iperf3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue