nixpkgs/pkgs/tools/networking/haproxy/default.nix

36 lines
1.2 KiB
Nix
Raw Normal View History

2015-03-26 19:29:10 +01:00
{ stdenv, pkgs, fetchurl, openssl }:
stdenv.mkDerivation rec {
2015-03-26 21:21:15 +01:00
majorVersion = "1.5";
version = "${majorVersion}.14";
name = "haproxy-${version}";
2013-10-29 15:55:25 +01:00
src = fetchurl {
2015-03-26 21:21:15 +01:00
url = "http://haproxy.1wt.eu/download/${majorVersion}/src/${name}.tar.gz";
sha256 = "16cg1jmy2d8mq2ypwifsvhbyp4pyrj0zm0r818sx0r4hchwdsrcm";
};
2015-03-26 19:29:10 +01:00
buildInputs = [ openssl ];
# TODO: make it work on darwin/bsd as well
preConfigure = ''
2015-03-26 19:29:10 +01:00
export makeFlags="TARGET=linux2628 PREFIX=$out USE_OPENSSL=yes"
'';
meta = {
description = "Reliable, high performance TCP/HTTP load balancer";
longDescription = ''
HAProxy is a free, very fast and reliable solution offering high
availability, load balancing, and proxying for TCP and HTTP-based
applications. It is particularly suited for web sites crawling under very
high loads while needing persistence or Layer7 processing. Supporting
tens of thousands of connections is clearly realistic with todays
hardware.
'';
homepage = http://haproxy.1wt.eu;
maintainers = [ stdenv.lib.maintainers.garbas ];
platforms = stdenv.lib.platforms.linux;
2015-03-26 19:32:37 +01:00
license = stdenv.lib.licenses.gpl2;
};
}