2016-04-28 14:43:30 +00:00
|
|
|
{ stdenv, fetchurl, openssl, zlib }:
|
2014-02-02 14:04:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-02-24 22:27:55 +00:00
|
|
|
name = "siege-4.0.5";
|
2014-02-02 14:04:46 +00:00
|
|
|
|
2014-01-11 22:27:49 +00:00
|
|
|
src = fetchurl {
|
2014-11-05 07:53:59 +00:00
|
|
|
url = "http://download.joedog.org/siege/${name}.tar.gz";
|
2020-02-24 22:27:55 +00:00
|
|
|
sha256 = "0c82h0idkvfbzspy7h6w97wyk671694nl1ir94zhzn54mw0p0jrv";
|
2014-01-20 11:58:22 +00:00
|
|
|
};
|
2014-02-02 14:04:46 +00:00
|
|
|
|
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
|
|
|
|
|
2016-04-28 14:43:30 +00:00
|
|
|
buildInputs = [ openssl zlib ];
|
2016-04-27 17:22:47 +00:00
|
|
|
|
2017-09-22 19:32:33 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's/u_int32_t/uint32_t/g' -e '1i#include <stdint.h>' src/hash.c
|
|
|
|
'';
|
|
|
|
|
2016-04-28 14:43:30 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-ssl=${openssl.dev}"
|
|
|
|
"--with-zlib=${zlib.dev}"
|
|
|
|
];
|
2014-07-11 14:09:52 +00:00
|
|
|
|
2014-02-02 14:04:46 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-01-20 11:58:22 +00:00
|
|
|
description = "HTTP load tester";
|
2014-02-02 14:04:46 +00:00
|
|
|
maintainers = with maintainers; [ ocharles raskin ];
|
2018-08-13 14:05:53 +00:00
|
|
|
platforms = platforms.unix;
|
2014-02-02 14:04:46 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2014-01-11 22:27:49 +00:00
|
|
|
};
|
|
|
|
}
|