iperf2: make binary symlink & prioritize iperf3
If both are in the environment, iperf3 should be used as `bin/iperf` by default, for more consistency.
This commit is contained in:
parent
347bf168da
commit
ff132824f2
@ -11,10 +11,18 @@ stdenv.mkDerivation rec {
|
|||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
configureFlags = [ "--enable-fastsampling" ];
|
configureFlags = [ "--enable-fastsampling" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mv $out/bin/iperf $out/bin/iperf2
|
||||||
|
ln -s $out/bin/iperf2 $out/bin/iperf
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://sourceforge.net/projects/iperf/;
|
homepage = https://sourceforge.net/projects/iperf/;
|
||||||
description = "Tool to measure IP bandwidth using UDP or TCP";
|
description = "Tool to measure IP bandwidth using UDP or TCP";
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
|
||||||
|
# prioritize iperf3
|
||||||
|
priority = 10;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user