2022-05-22 17:38:02 +01:00
|
|
|
{ libsmbios, lib, stdenv, autoreconfHook, fetchFromGitHub, fetchpatch }:
|
2011-10-25 21:49:22 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "netperf";
|
2022-05-12 23:44:04 +01:00
|
|
|
version = "20210121";
|
2011-10-25 21:49:22 +01:00
|
|
|
|
2017-11-14 00:32:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "HewlettPackard";
|
|
|
|
repo = "netperf";
|
2022-05-12 23:44:04 +01:00
|
|
|
rev = "3bc455b23f901dae377ca0a558e1e32aa56b31c4";
|
|
|
|
sha256 = "s4G1ZN+6LERdEMDkc+12ZQgTi6K+ppUYUCGn4faCS9c=";
|
2011-10-25 21:49:22 +01:00
|
|
|
};
|
|
|
|
|
2022-05-22 17:38:02 +01:00
|
|
|
patches = [
|
|
|
|
# Pul fix pending upstream inclusion for -fno-common toolchains:
|
|
|
|
# https://github.com/HewlettPackard/netperf/pull/46
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common.patch";
|
|
|
|
url = "https://github.com/HewlettPackard/netperf/commit/c6a2e17fe35f0e68823451fedfdf5b1dbecddbe3.patch";
|
|
|
|
sha256 = "P/lRa6EakSalKWDTgZ7bWeGleaTLLa5UhzulxKd1xE4=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
buildInputs = lib.optional (with stdenv.hostPlatform; isx86 && isLinux) libsmbios;
|
2018-05-12 17:51:28 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
autoreconfPhase = ''
|
|
|
|
autoreconf -i -I src/missing/m4
|
|
|
|
'';
|
|
|
|
configureFlags = [ "--enable-demo" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2012-08-10 10:56:22 +01:00
|
|
|
meta = {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Benchmark to measure the performance of many different types of networking";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.netperf.org/netperf/";
|
2022-05-12 23:44:04 +01:00
|
|
|
license = lib.licenses.mit;
|
2012-08-10 10:56:22 +01:00
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.mmlb ];
|
2012-08-10 10:56:22 +01:00
|
|
|
};
|
|
|
|
}
|