2021-04-17 00:35:05 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-04-17 00:35:05 +00:00
|
|
|
pname = "siege";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "4.1.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-04-17 00:35:05 +00:00
|
|
|
url = "http://download.joedog.org/siege/${pname}-${version}.tar.gz";
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-MJ1Ym/yBm28V0uXoWRs8DG9pNiT1Bg7qwGek2ad1fek=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isLinux [
|
2022-03-30 09:31:56 +00:00
|
|
|
"-lgcc_s"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i -e 's/u_int32_t/uint32_t/g' -e '1i#include <stdint.h>' src/hash.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-ssl=${openssl.dev}"
|
|
|
|
"--with-zlib=${zlib.dev}"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "HTTP load tester";
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://www.joedog.org/siege-home/";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/JoeDog/siege/blob/v${version}/ChangeLog";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-12-09 12:39:15 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|