2016-07-10 00:06:42 +01:00
|
|
|
{ stdenv, fetchurl, libowfat, zlib, openssl }:
|
2015-11-10 22:59:38 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "0.13";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gatling-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://dl.fefe.de/${name}.tar.bz2";
|
|
|
|
sha256 = "0icjx20ws8gqxgpm77dx7p9zcwi1fv162in6igx04rmnyzyla8dl";
|
|
|
|
};
|
|
|
|
|
2016-07-10 00:06:42 +01:00
|
|
|
buildInputs = [ libowfat zlib openssl.dev ];
|
2015-11-10 22:59:38 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
substituteInPlace Makefile --replace "/usr/local" "$out"
|
|
|
|
substituteInPlace GNUmakefile --replace "/opt/diet" "$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make gatling
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A high performance web server";
|
|
|
|
homepage = http://www.fefe.de/gatling/;
|
2015-11-11 07:31:56 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2015-11-10 22:59:38 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.the-kenny ];
|
|
|
|
};
|
|
|
|
}
|