2021-04-15 11:34:48 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
}:
|
2014-02-02 15:04:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-04-15 11:34:48 +02:00
|
|
|
pname = "siege";
|
2021-07-16 23:27:11 +02:00
|
|
|
version = "4.1.1";
|
2014-02-02 15:04:46 +01:00
|
|
|
|
2014-01-11 23:27:49 +01:00
|
|
|
src = fetchurl {
|
2021-04-15 11:34:48 +02:00
|
|
|
url = "http://download.joedog.org/siege/${pname}-${version}.tar.gz";
|
2021-07-16 23:27:11 +02:00
|
|
|
sha256 = "1a74py0ib1gr3znv9ah5acw67ngl08b14dbc90ww9clvgdr2ag0l";
|
2014-01-20 12:58:22 +01:00
|
|
|
};
|
2014-02-02 15:04:46 +01:00
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lgcc_s";
|
2014-02-02 15:04:46 +01:00
|
|
|
|
2021-04-15 11:34:48 +02:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
];
|
2016-04-27 19:22:47 +02:00
|
|
|
|
2017-09-22 21:32:33 +02:00
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's/u_int32_t/uint32_t/g' -e '1i#include <stdint.h>' src/hash.c
|
|
|
|
'';
|
|
|
|
|
2016-04-28 16:43:30 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--with-ssl=${openssl.dev}"
|
|
|
|
"--with-zlib=${zlib.dev}"
|
|
|
|
];
|
2014-07-11 16:09:52 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-01-20 12:58:22 +01:00
|
|
|
description = "HTTP load tester";
|
2021-05-06 18:35:51 +02:00
|
|
|
homepage = "https://www.joedog.org/siege-home/";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-12-07 15:26:45 +01:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2018-08-13 16:05:53 +02:00
|
|
|
platforms = platforms.unix;
|
2014-01-11 23:27:49 +01:00
|
|
|
};
|
|
|
|
}
|