2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook
|
|
|
|
, pkgconfig, libevent, pcre, zlib, openssl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "memtier-benchmark";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "1.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "redislabs";
|
|
|
|
repo = "memtier_benchmark";
|
|
|
|
rev = "refs/tags/${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "0m2qnnc71qpdj8w421bxn0zxz6ddvzy7b0n19jvyncnzvk1ff0sq";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace ./configure.ac \
|
|
|
|
--replace '1.2.8' '${version}'
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ libevent pcre zlib openssl ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Redis and Memcached traffic generation and benchmarking tool";
|
|
|
|
homepage = "https://github.com/redislabs/memtier_benchmark";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|