{ lib , stdenv , fetchurl , openssl , zlib }: stdenv.mkDerivation rec { pname = "siege"; version = "4.0.9"; src = fetchurl { url = "http://download.joedog.org/siege/${pname}-${version}.tar.gz"; sha256 = "0xzjfljhv9wcf58qw2c1sbpa5nqz1pb6rjpgvz7bxrv90n31bghx"; }; NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lgcc_s"; buildInputs = [ openssl zlib ]; prePatch = '' sed -i -e 's/u_int32_t/uint32_t/g' -e '1i#include ' src/hash.c ''; configureFlags = [ "--with-ssl=${openssl.dev}" "--with-zlib=${zlib.dev}" ]; meta = with lib; { description = "HTTP load tester"; homepage = "https://www.joedog.org/siege-home/"; license = licenses.gpl2Plus; maintainers = with maintainers; [ raskin ]; platforms = platforms.unix; }; }