Author: raskin
Date: Tue Jun  7 16:15:05 2011
New Revision: 27368
URL: https://svn.nixos.org/websvn/nix/?rev=27368&sc=1

Log:
Adding siege HTTP load tester

Added:
   nixpkgs/trunk/pkgs/tools/networking/siege/
   nixpkgs/trunk/pkgs/tools/networking/siege/default.nix
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Added: nixpkgs/trunk/pkgs/tools/networking/siege/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/networking/siege/default.nix       Tue Jun  7 
16:15:05 2011        (r27368)
@@ -0,0 +1,51 @@
+x@{builderDefsPackage
+  , ...}:
+builderDefsPackage
+(a :  
+let 
+  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
+    [];
+
+  buildInputs = map (n: builtins.getAttr n x)
+    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+  sourceInfo = rec {
+    baseName="siege";
+    version="2.70";
+    name="${baseName}-${version}";
+    url="ftp://ftp.joedog.org/pub/siege/${name}.tar.gz";;
+    hash="14fxfmfsqwyahc91w4vn3n8hvclf78n4k1xllqsrpvjb5asvrd1w";
+  };
+in
+rec {
+  src = a.fetchurl {
+    url = sourceInfo.url;
+    sha256 = sourceInfo.hash;
+  };
+
+  inherit (sourceInfo) name version;
+  inherit buildInputs;
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["doConfigure" "createDirs" "doMakeInstall"];
+
+  createDirs = a.fullDepEntry ''
+    ensureDir "$out/"{bin,lib,share/man,etc}
+  '' ["defEnsureDir"];
+
+  meta = {
+    description = "HTTP load tester";
+    maintainers = with a.lib.maintainers;
+    [
+      raskin
+    ];
+    platforms = with a.lib.platforms;
+      linux;
+    license = a.lib.licenses.gpl2Plus;
+  };
+  passthru = {
+    updateInfo = {
+      downloadPage = "http://www.joedog.org/index/siege-home";;
+    };
+  };
+}) x
+

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Tue Jun  7 15:56:50 
2011        (r27367)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Tue Jun  7 16:15:05 
2011        (r27368)
@@ -1264,6 +1264,8 @@
 
   shebangfix = callPackage ../tools/misc/shebangfix { };
 
+  siege = callPackage ../tools/networking/siege {};
+
   slimrat = callPackage ../tools/networking/slimrat {
     inherit (perlPackages) WWWMechanize LWP;
   };
_______________________________________________
nix-commits mailing list
nix-comm...@cs.uu.nl
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to