2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, libowfat, libcap, zlib, openssl }:
|
2015-11-10 22:59:38 +00:00
|
|
|
|
|
|
|
let
|
2020-12-03 14:02:50 +00:00
|
|
|
version = "0.16";
|
2015-11-10 22:59:38 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "gatling";
|
|
|
|
inherit version;
|
2015-11-10 22:59:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 22:52:01 +01:00
|
|
|
url = "https://www.fefe.de/gatling/${pname}-${version}.tar.xz";
|
2020-12-03 14:02:50 +00:00
|
|
|
sha256 = "0nrnws5qrl4frqcsfa9z973vv5mifgr9z170qbvg3mq1wa7475jz";
|
2015-11-10 22:59:38 +00:00
|
|
|
};
|
|
|
|
|
2020-12-03 14:02:50 +00:00
|
|
|
buildInputs = [ libowfat libcap 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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-11-10 22:59:38 +00:00
|
|
|
description = "A high performance web server";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.fefe.de/gatling/";
|
2021-01-15 07:07:56 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2015-11-10 22:59:38 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|