diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2011-06-07 16:15:05 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2011-06-07 16:15:05 +0000 |
commit | 4157b7709721f922bd943b59a5d40953a2eae9bc (patch) | |
tree | a23e74e6b7d8bbc31af96a594459708e7166ae9f /pkgs/tools/networking/siege | |
parent | 812a94c8b071591bd3470bd544620295a9ab1ce0 (diff) |
Adding siege HTTP load tester
svn path=/nixpkgs/trunk/; revision=27368
Diffstat (limited to 'pkgs/tools/networking/siege')
-rw-r--r-- | pkgs/tools/networking/siege/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/tools/networking/siege/default.nix b/pkgs/tools/networking/siege/default.nix new file mode 100644 index 0000000000000..bb588f3659992 --- /dev/null +++ b/pkgs/tools/networking/siege/default.nix @@ -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 + |