about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/http/gatling/default.nix
blob: 19b2d01f5be8560c38f44b4e850ecdbe653aac70 (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
{ stdenv, fetchurl, libowfat, zlib, openssl }:

let
  version = "0.15";
in
stdenv.mkDerivation rec {
  name = "gatling-${version}";

  src = fetchurl {
    url = "https://www.fefe.de/gatling/${name}.tar.xz";
    sha256 = "194srqyja3pczpbl6l169zlvx179v7ln0m6yipmhvj6hrv82k8vg";
  };

  buildInputs = [  libowfat zlib openssl.dev ];

  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/;
    license = stdenv.lib.licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ maintainers.the-kenny ];
  };
}