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