2018-05-12 18:51:28 +02:00
|
|
|
{ libsmbios, stdenv, autoreconfHook, fetchFromGitHub }:
|
2011-10-25 22:49:22 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "netperf";
|
2019-04-08 12:20:37 +02:00
|
|
|
version = "20180613";
|
2011-10-25 22:49:22 +02:00
|
|
|
|
2017-11-14 01:32:17 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "HewlettPackard";
|
|
|
|
repo = "netperf";
|
2019-04-08 12:20:37 +02:00
|
|
|
rev = "bcb868bde7f0203bbab69609f65d4088ba7398db";
|
|
|
|
sha256 = "1wbbgdvhadd3qs3afv6i777argdpcyxkwz4yv6aqp223n8ki6dm8";
|
2011-10-25 22:49:22 +02:00
|
|
|
};
|
|
|
|
|
2019-03-25 10:43:28 +01:00
|
|
|
buildInputs = stdenv.lib.optional (stdenv.hostPlatform.isx86) libsmbios;
|
2018-05-12 18:51:28 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
autoreconfPhase = ''
|
|
|
|
autoreconf -i -I src/missing/m4
|
|
|
|
'';
|
|
|
|
configureFlags = [ "--enable-demo" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2012-08-10 11:56:22 +02:00
|
|
|
meta = {
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "Benchmark to measure the performance of many different types of networking";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.netperf.org/netperf/;
|
2012-08-10 11:56:22 +02:00
|
|
|
license = "Hewlett-Packard BSD-like license";
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2018-05-12 18:51:28 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.mmlb ];
|
2012-08-10 11:56:22 +02:00
|
|
|
};
|
|
|
|
}
|