forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / ga / gatling / package.nix
blob5255010177af56b06c2124556d44c5ee1e532725
1 { lib, stdenv, fetchurl, libowfat, libcap, zlib, openssl, libxcrypt }:
3 let
4   version = "0.16";
5 in
6 stdenv.mkDerivation rec {
7   pname = "gatling";
8   inherit version;
10   src = fetchurl {
11     url = "https://www.fefe.de/gatling/${pname}-${version}.tar.xz";
12     sha256 = "0nrnws5qrl4frqcsfa9z973vv5mifgr9z170qbvg3mq1wa7475jz";
13   };
15   buildInputs = [ libowfat libcap zlib openssl libxcrypt ];
17   configurePhase = ''
18     substituteInPlace Makefile --replace "/usr/local" "$out"
19     substituteInPlace GNUmakefile --replace "/opt/diet" "$out"
20   '';
22   buildPhase = ''
23     make gatling
24   '';
26   meta = with lib; {
27     description = "High performance web server";
28     homepage = "http://www.fefe.de/gatling/";
29     license = lib.licenses.gpl2Only;
30     platforms = platforms.linux;
31   };