about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/networking/httperf/default.nix38
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/networking/httperf/default.nix b/pkgs/tools/networking/httperf/default.nix
new file mode 100644
index 000000000000..fa8bbb91c5be
--- /dev/null
+++ b/pkgs/tools/networking/httperf/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchFromGitHub, autoreconfHook, openssl }:
+
+stdenv.mkDerivation rec {
+  pname = "httperf";
+  name = "${pname}-${version}";
+  version = "0.9.1";
+
+  src = fetchFromGitHub {
+    repo = pname;
+    owner = pname;
+    rev = "3209c7f9b15069d4b79079e03bafba5b444569ff";
+    sha256 = "0p48z9bcpdjq3nsarl26f0xbxmqgw42k5qmfy8wv5bcrz6b3na42";
+  };
+
+  nativeBuildInputs = [ autoreconfHook ];
+  propagatedBuildInputs = [ openssl ];
+
+  configurePhase = ''
+    autoreconf -i
+    mkdir -pv build
+    cd build
+    ../configure
+  '';
+
+  installPhase = ''
+    mkdir -vp $out/bin
+    mv -v src/httperf $out/bin
+  '';
+
+  meta = with stdenv.lib; {
+    description = "The httperf HTTP load generator";
+    homepage = https://github.com/httperf/httperf;
+    maintainers = with maintainers; [ nand0p ];
+    license = licenses.gpl2;
+    platforms = platforms.linux;
+  };
+
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index d94aba732352..ae91a45d7151 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -678,6 +678,8 @@ with pkgs;
 
   glyr = callPackage ../tools/audio/glyr { };
 
+  httperf = callPackage ../tools/networking/httperf { };
+
   imgpatchtools = callPackage ../development/mobile/imgpatchtools { };
 
   lastpass-cli = callPackage ../tools/security/lastpass-cli { };