summary refs log tree commit diff
path: root/pkgs/tools/networking/memtier-benchmark
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2018-03-24 04:17:34 -0500
committerAustin Seipp <aseipp@pobox.com>2018-03-24 04:18:45 -0500
commitefbeb74d0d1b5b696f6420db6089f52ad92c8784 (patch)
treea588a0df1bd617cfbee311700385927709c5922b /pkgs/tools/networking/memtier-benchmark
parentada22a64a899ddd2c98e81b4f877b37fc5fa4ce8 (diff)
downloadnixpkgs-efbeb74d0d1b5b696f6420db6089f52ad92c8784.tar
nixpkgs-efbeb74d0d1b5b696f6420db6089f52ad92c8784.tar.gz
nixpkgs-efbeb74d0d1b5b696f6420db6089f52ad92c8784.tar.bz2
nixpkgs-efbeb74d0d1b5b696f6420db6089f52ad92c8784.tar.lz
nixpkgs-efbeb74d0d1b5b696f6420db6089f52ad92c8784.tar.xz
nixpkgs-efbeb74d0d1b5b696f6420db6089f52ad92c8784.tar.zst
nixpkgs-efbeb74d0d1b5b696f6420db6089f52ad92c8784.zip
memtier-benchmark: init at 1.2.11
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/tools/networking/memtier-benchmark')
-rw-r--r--pkgs/tools/networking/memtier-benchmark/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/networking/memtier-benchmark/default.nix b/pkgs/tools/networking/memtier-benchmark/default.nix
new file mode 100644
index 00000000000..ae8d3d96483
--- /dev/null
+++ b/pkgs/tools/networking/memtier-benchmark/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchFromGitHub, autoreconfHook
+, pkgconfig, libevent, pcre, zlib, openssl
+}:
+
+stdenv.mkDerivation rec {
+  name = "memtier-benchmark-${version}";
+  version = "1.2.11";
+
+  src = fetchFromGitHub {
+    owner  = "redislabs";
+    repo   = "memtier_benchmark";
+    rev    = "refs/tags/${version}";
+    sha256 = "0a1lz4j9whj6yf94xn7rna00abgrv2qs30vmpns1n9zqlpaj6b6a";
+  };
+
+  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 ];
+  };
+}