2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, libevent, pcre, zlib, openssl
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "memtier-benchmark";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redislabs";
|
|
|
|
repo = "memtier_benchmark";
|
|
|
|
rev = "refs/tags/${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-1ZgSmHOLvPecqVN9P/Mr/2cOdbdl4oe4GgMjLaDX7YQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace ./configure.ac \
|
|
|
|
--replace '1.2.8' '${version}'
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libevent pcre zlib openssl ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Redis and Memcached traffic generation and benchmarking tool";
|
|
|
|
homepage = "https://github.com/redislabs/memtier_benchmark";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ thoughtpolice ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|