2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook
|
2021-01-17 03:51:22 +00:00
|
|
|
, pkg-config, libevent, pcre, zlib, openssl
|
2018-03-24 09:17:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "memtier-benchmark";
|
2024-07-31 06:56:36 +00:00
|
|
|
version = "2.1.1";
|
2018-03-24 09:17:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redislabs";
|
|
|
|
repo = "memtier_benchmark";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-07-31 06:56:36 +00:00
|
|
|
sha256 = "sha256-mYqbtyXVx21rMJmZubFuAVV3qEmk0G3H3fjL6WnUzzM=";
|
2018-03-24 09:17:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace ./configure.ac \
|
|
|
|
--replace '1.2.8' '${version}'
|
|
|
|
'';
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2018-03-24 09:17:34 +00:00
|
|
|
buildInputs = [ libevent pcre zlib openssl ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Redis and Memcached traffic generation and benchmarking tool";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/redislabs/memtier_benchmark";
|
2024-04-26 11:35:31 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ thoughtpolice ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "memtier_benchmark";
|
2018-03-24 09:17:34 +00:00
|
|
|
};
|
|
|
|
}
|