1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00
nixpkgs/pkgs/tools/networking/siege/default.nix
Ollie Charles 1675b11cd4 Remove myself from maintainers sets
Unfortunately I can't reliably commit time to nixpkgs, so I would like to remove myself from being a formal maintainer for these packages.
2020-12-07 14:30:37 +00:00

31 lines
723 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; [ raskin ];
platforms = platforms.unix;
license = licenses.gpl2Plus;
};
}