3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/http/gatling/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
758 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, libowfat, libcap, zlib, openssl }:
2015-11-10 22:59:38 +00:00
let
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";
sha256 = "0nrnws5qrl4frqcsfa9z973vv5mifgr9z170qbvg3mq1wa7475jz";
2015-11-10 22:59:38 +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
'';
meta = with lib; {
2015-11-10 22:59:38 +00:00
description = "A high performance web server";
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;
};
}