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

31 lines
723 B
Nix
Raw Normal View History

2016-04-28 16:43:30 +02:00
{ stdenv, fetchurl, openssl, zlib }:
2014-02-02 15:04:46 +01:00
stdenv.mkDerivation rec {
2020-08-29 17:35:04 +02:00
name = "siege-4.0.7";
2014-02-02 15:04:46 +01:00
2014-01-11 23:27:49 +01:00
src = fetchurl {
2014-11-05 08:53:59 +01:00
url = "http://download.joedog.org/siege/${name}.tar.gz";
2020-08-29 17:35:04 +02:00
sha256 = "1y3dnl1ziw0c0d4nw30aj0sdmjvarn4xfxgfkswffwnkm8z5p9xz";
};
2014-02-02 15:04:46 +01:00
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
2016-04-28 16:43:30 +02:00
buildInputs = [ openssl zlib ];
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
2014-02-02 15:04:46 +01:00
meta = with stdenv.lib; {
description = "HTTP load tester";
maintainers = with maintainers; [ raskin ];
platforms = platforms.unix;
2014-02-02 15:04:46 +01:00
license = licenses.gpl2Plus;
2014-01-11 23:27:49 +01:00
};
}