diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/http/gatling/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/http/gatling/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/http/gatling/default.nix b/nixpkgs/pkgs/servers/http/gatling/default.nix new file mode 100644 index 000000000000..19b2d01f5be8 --- /dev/null +++ b/nixpkgs/pkgs/servers/http/gatling/default.nix @@ -0,0 +1,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 ]; + }; +} |