nixpkgs/pkgs/tools/networking/siege/default.nix

40 lines
756 B
Nix
Raw Normal View History

2021-04-15 10:34:48 +01:00
{ lib
, stdenv
, fetchurl
, openssl
, zlib
}:
2014-02-02 14:04:46 +00:00
stdenv.mkDerivation rec {
2021-04-15 10:34:48 +01:00
pname = "siege";
version = "4.0.8";
2014-02-02 14:04:46 +00:00
2014-01-11 22:27:49 +00:00
src = fetchurl {
2021-04-15 10:34:48 +01:00
url = "http://download.joedog.org/siege/${pname}-${version}.tar.gz";
sha256 = "01qhw52kyqwidp5bckw4xmz4ldqdwkjci7k421qm68kk0mx9l48g";
};
2014-02-02 14:04:46 +00:00
2021-01-15 09:19:50 +00:00
NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lgcc_s";
2014-02-02 14:04:46 +00:00
2021-04-15 10:34:48 +01:00
buildInputs = [
openssl
zlib
];
2017-09-22 20:32:33 +01:00
prePatch = ''
sed -i -e 's/u_int32_t/uint32_t/g' -e '1i#include <stdint.h>' src/hash.c
'';
2016-04-28 15:43:30 +01:00
configureFlags = [
"--with-ssl=${openssl.dev}"
"--with-zlib=${zlib.dev}"
];
2014-07-11 15:09:52 +01:00
meta = with lib; {
description = "HTTP load tester";
maintainers = with maintainers; [ raskin ];
platforms = platforms.unix;
2014-02-02 14:04:46 +00:00
license = licenses.gpl2Plus;
2014-01-11 22:27:49 +00:00
};
}