mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 07:48:58 +00:00
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" ];
|
||||
configureFlags = [ "--enable-fastsampling" ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/iperf $out/bin/iperf2
|
||||
ln -s $out/bin/iperf2 $out/bin/iperf
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://sourceforge.net/projects/iperf/;
|
||||
description = "Tool to measure IP bandwidth using UDP or TCP";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.mit;
|
||||
|
||||
# prioritize iperf3
|
||||
priority = 10;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue