2021-04-15 09:34:48 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
}:
|
2014-02-02 14:04:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-04-15 09:34:48 +00:00
|
|
|
pname = "siege";
|
2023-01-08 09:34:23 +00:00
|
|
|
version = "4.1.6";
|
2014-02-02 14:04:46 +00:00
|
|
|
|
2014-01-11 22:27:49 +00:00
|
|
|
src = fetchurl {
|
2021-04-15 09:34:48 +00:00
|
|
|
url = "http://download.joedog.org/siege/${pname}-${version}.tar.gz";
|
2023-01-08 09:34:23 +00:00
|
|
|
hash = "sha256-MJ1Ym/yBm28V0uXoWRs8DG9pNiT1Bg7qwGek2ad1fek=";
|
2014-01-20 11:58:22 +00:00
|
|
|
};
|
2014-02-02 14:04:46 +00:00
|
|
|
|
2022-03-21 19:29:59 +00:00
|
|
|
NIX_LDFLAGS = lib.optionalString stdenv.isLinux [
|
|
|
|
"-lgcc_s"
|
|
|
|
];
|
2014-02-02 14:04:46 +00:00
|
|
|
|
2021-04-15 09:34:48 +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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-01-20 11:58:22 +00:00
|
|
|
description = "HTTP load tester";
|
2021-05-06 16:35:51 +00:00
|
|
|
homepage = "https://www.joedog.org/siege-home/";
|
2023-01-08 09:33:16 +00:00
|
|
|
changelog = "https://github.com/JoeDog/siege/blob/v${version}/ChangeLog";
|
2021-05-06 16:35:51 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-12-07 14:26:45 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2018-08-13 14:05:53 +00:00
|
|
|
platforms = platforms.unix;
|
2014-01-11 22:27:49 +00:00
|
|
|
};
|
|
|
|
}
|