2016-07-09 23:06:42 +00:00
|
|
|
{ stdenv, fetchurl, libowfat, zlib, openssl }:
|
2015-11-10 22:59:38 +00:00
|
|
|
|
|
|
|
let
|
2018-03-30 02:15:20 +00:00
|
|
|
version = "0.15";
|
2015-11-10 22:59:38 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "gatling";
|
|
|
|
inherit version;
|
2015-11-10 22:59:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 21:52:01 +00:00
|
|
|
url = "https://www.fefe.de/gatling/${pname}-${version}.tar.xz";
|
2018-03-30 02:15:20 +00:00
|
|
|
sha256 = "194srqyja3pczpbl6l169zlvx179v7ln0m6yipmhvj6hrv82k8vg";
|
2015-11-10 22:59:38 +00:00
|
|
|
};
|
|
|
|
|
2016-07-09 23:06:42 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|