mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
36 lines
913 B
Nix
36 lines
913 B
Nix
{ stdenv, fetchgit, openssl }:
|
|
|
|
let
|
|
version = "4.0.0";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
name = "wrk-${version}";
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/wg/wrk.git";
|
|
rev = "7cdede916a53da253c995767a92eec36a245a2cc";
|
|
sha256 = "1zk7mx27875wkbwcjpbl9zmpyyfic9177wmkif9a16mvj7mvlw9v";
|
|
};
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp wrk $out/bin
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "HTTP benchmarking tool";
|
|
homepage = http://github.com/wg/wrk;
|
|
longDescription = ''
|
|
wrk is a modern HTTP benchmarking tool capable of generating
|
|
significant load when run on a single multi-core CPU. It
|
|
combines a multithreaded design with scalable event notification
|
|
systems such as epoll and kqueue.
|
|
'';
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ragge ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|