mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 10:56:53 +00:00
a69f61df21
Confirmed to work on Darwin
31 lines
732 B
Nix
31 lines
732 B
Nix
{ stdenv, fetchurl, openssl, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "siege-4.0.4";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.joedog.org/siege/${name}.tar.gz";
|
|
sha256 = "0vzaj5nzb0fir2a4l7ghv3wa5d1nk2ss8gmwjb6bjavjplccyzcg";
|
|
};
|
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
|
|
|
|
buildInputs = [ openssl zlib ];
|
|
|
|
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}"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "HTTP load tester";
|
|
maintainers = with maintainers; [ ocharles raskin ];
|
|
platforms = platforms.unix;
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
}
|