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 23:59:38 +01:00
let
version = "0.16";
2015-11-10 23:59:38 +01:00
in
stdenv.mkDerivation rec {
2019-08-13 23:52:01 +02:00
pname = "gatling";
inherit version;
2015-11-10 23:59:38 +01:00
src = fetchurl {
2019-08-13 23:52:01 +02:00
url = "https://www.fefe.de/gatling/${pname}-${version}.tar.xz";
sha256 = "0nrnws5qrl4frqcsfa9z973vv5mifgr9z170qbvg3mq1wa7475jz";
2015-11-10 23:59:38 +01:00
};
buildInputs = [ libowfat libcap zlib openssl.dev ];
2015-11-10 23:59:38 +01:00
configurePhase = ''
substituteInPlace Makefile --replace "/usr/local" "$out"
substituteInPlace GNUmakefile --replace "/opt/diet" "$out"
'';
buildPhase = ''
make gatling
'';
meta = with lib; {
2015-11-10 23:59:38 +01:00
description = "A high performance web server";
homepage = "http://www.fefe.de/gatling/";
2021-01-15 08:07:56 +01:00
license = lib.licenses.gpl2;
2015-11-10 23:59:38 +01:00
platforms = platforms.linux;
};
}