summary refs log tree commit diff
path: root/pkgs/tools/networking/hey/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/hey/default.nix')
-rw-r--r--pkgs/tools/networking/hey/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/networking/hey/default.nix b/pkgs/tools/networking/hey/default.nix
new file mode 100644
index 00000000000..69cfa452602
--- /dev/null
+++ b/pkgs/tools/networking/hey/default.nix
@@ -0,0 +1,24 @@
+{ buildGoModule, stdenv, fetchFromGitHub, Security }:
+
+buildGoModule rec {
+  pname = "hey";
+  version = "0.1.3";
+
+  src = fetchFromGitHub {
+    owner = "rakyll";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "06w5hf0np0ayvjnfy8zgy605yrs5j326nk2gm0fy7amhwx1fzkwv";
+  };
+
+  modSha256 = "0a00kcyagqczw0vhl8qs2xs1y8myw080y9kjs4qrcmj6kibdy55q";
+
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
+
+  meta = with stdenv.lib; {
+    description = "HTTP load generator, ApacheBench (ab) replacement";
+    homepage = "https://github.com/rakyll/hey";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ filalex77 ];
+  };
+}