mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
41 lines
809 B
Nix
41 lines
809 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, openssl
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "siege";
|
|
version = "4.1.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://download.joedog.org/siege/${pname}-${version}.tar.gz";
|
|
sha256 = "1a74py0ib1gr3znv9ah5acw67ngl08b14dbc90ww9clvgdr2ag0l";
|
|
};
|
|
|
|
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 <stdint.h>' 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;
|
|
};
|
|
}
|