diff options
Diffstat (limited to 'pkgs/tools/networking/siege/default.nix')
-rw-r--r-- | pkgs/tools/networking/siege/default.nix | 61 |
1 files changed, 14 insertions, 47 deletions
diff --git a/pkgs/tools/networking/siege/default.nix b/pkgs/tools/networking/siege/default.nix index ebbfcb5d360..e29433adae3 100644 --- a/pkgs/tools/networking/siege/default.nix +++ b/pkgs/tools/networking/siege/default.nix @@ -1,51 +1,18 @@ -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"; +{ stdenv, fetchurl, lib }: +let + version = "3.0.5"; + baseName = "siege"; +in stdenv.mkDerivation rec { + name = "${baseName}-${version}"; + src = fetchurl { + url = "http://www.joedog.org/pub/siege/${name}.tar.gz"; + sha256 = "16faa6kappg23bdriyiy3ym94rmddpvw8cl8xgv5nxq2v17n4gi8"; }; -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 '' - mkdir -p "$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"; - }; + maintainers = with lib.maintainers; [ ocharles raskin ]; + platforms = with lib.platforms; linux; + license = with lib.licenses; gpl2Plus; }; -}) x - + NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s"; +} |