@@ -0,0 +1,31 @@
1+{ stdenv, fetchFromGitHub, autoreconfHook
2+, pkgconfig, libevent, pcre, zlib, openssl
3+}:
4+
5+stdenv.mkDerivation rec {
6+ name = "memtier-benchmark-${version}";
7+ version = "1.2.11";
8+
9+ src = fetchFromGitHub {
10+ owner = "redislabs";
11+ repo = "memtier_benchmark";
12+ rev = "refs/tags/${version}";
13+ sha256 = "0a1lz4j9whj6yf94xn7rna00abgrv2qs30vmpns1n9zqlpaj6b6a";
14+ };
15+
16+ patchPhase = ''
17+ substituteInPlace ./configure.ac \
18+ --replace '1.2.8' '${version}'
19+ '';
20+
21+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
22+ buildInputs = [ libevent pcre zlib openssl ];
23+
24+ meta = {
25+ description = "Redis and Memcached traffic generation and benchmarking tool";
26+ homepage = https://github.com/redislabs/memtier_benchmark;
27+ license = stdenv.lib.licenses.gpl2;
28+ platforms = stdenv.lib.platforms.linux;
29+ maintainers = with stdenv.lib.maintainers; [ thoughtpolice ];
30+ };
31+}