iperf2: modernize & refactor
This commit is contained in:
parent
389f490dcd
commit
34ae57af26
@ -4,20 +4,17 @@
|
|||||||
fetchurl,
|
fetchurl,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "iperf";
|
pname = "iperf";
|
||||||
version = "2.2.1";
|
version = "2.2.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/iperf2/files/${pname}-${version}.tar.gz";
|
url = "mirror://sourceforge/iperf2/files/iperf-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "1yyqzgz526xn6v2hrdiizviddx3xphjg93ihh7mdncw0wakv0jkm";
|
hash = "sha256-dUqwp+KAM9vqgTCO9CS8ffTW4v4xtgzFNrYbUf772Ps=";
|
||||||
};
|
};
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
|
||||||
configureFlags = [ "--enable-fastsampling" ];
|
configureFlags = [ "--enable-fastsampling" ];
|
||||||
|
|
||||||
makeFlags = [ "AR:=$(AR)" ];
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv $out/bin/iperf $out/bin/iperf2
|
mv $out/bin/iperf $out/bin/iperf2
|
||||||
ln -s $out/bin/iperf2 $out/bin/iperf
|
ln -s $out/bin/iperf2 $out/bin/iperf
|
||||||
@ -32,4 +29,4 @@ stdenv.mkDerivation rec {
|
|||||||
# prioritize iperf3
|
# prioritize iperf3
|
||||||
priority = 10;
|
priority = 10;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user