depot/third_party/nixpkgs/pkgs/tools/networking/siege/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

30 lines
732 B
Nix

{ stdenv, fetchurl, openssl, zlib }:
stdenv.mkDerivation rec {
name = "siege-4.0.7";
src = fetchurl {
url = "http://download.joedog.org/siege/${name}.tar.gz";
sha256 = "1y3dnl1ziw0c0d4nw30aj0sdmjvarn4xfxgfkswffwnkm8z5p9xz";
};
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;
};
}