5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
32 lines
920 B
Nix
32 lines
920 B
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook
|
|
, pkg-config, libevent, pcre, zlib, openssl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "memtier-benchmark";
|
|
version = "2.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "redislabs";
|
|
repo = "memtier_benchmark";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-9oh1LG0O1Jto+8PdPqXXSe8ldWub1o1EJ6nfilfr70A=";
|
|
};
|
|
|
|
patchPhase = ''
|
|
substituteInPlace ./configure.ac \
|
|
--replace '1.2.8' '${version}'
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
buildInputs = [ libevent pcre zlib openssl ];
|
|
|
|
meta = {
|
|
description = "Redis and Memcached traffic generation and benchmarking tool";
|
|
homepage = "https://github.com/redislabs/memtier_benchmark";
|
|
license = lib.licenses.gpl2Only;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ thoughtpolice ];
|
|
mainProgram = "memtier_benchmark";
|
|
};
|
|
}
|