about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/http/gatling/default.nix
blob: e1180121a65a39a989c1a02627e4e37fc2ef69a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, stdenv, fetchurl, libowfat, libcap, zlib, openssl }:

let
  version = "0.16";
in
stdenv.mkDerivation rec {
  pname = "gatling";
  inherit version;

  src = fetchurl {
    url = "https://www.fefe.de/gatling/${pname}-${version}.tar.xz";
    sha256 = "0nrnws5qrl4frqcsfa9z973vv5mifgr9z170qbvg3mq1wa7475jz";
  };

  buildInputs = [ libowfat libcap zlib openssl.dev ];

  configurePhase = ''
    substituteInPlace Makefile --replace "/usr/local" "$out"
    substituteInPlace GNUmakefile --replace "/opt/diet" "$out"
  '';

  buildPhase = ''
    make gatling
  '';

  meta = with lib; {
    description = "A high performance web server";
    homepage = "http://www.fefe.de/gatling/";
    license = lib.licenses.gpl2;
    platforms = platforms.linux;
  };
}