2015-03-26 18:29:10 +00:00
|
|
|
{ stdenv, pkgs, fetchurl, openssl }:
|
2012-05-18 08:50:10 +01:00
|
|
|
|
2013-07-03 02:36:15 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-03-26 20:21:15 +00:00
|
|
|
majorVersion = "1.5";
|
2015-07-09 19:19:07 +01:00
|
|
|
version = "${majorVersion}.14";
|
2013-07-03 02:36:15 +01:00
|
|
|
name = "haproxy-${version}";
|
2013-10-29 14:55:25 +00:00
|
|
|
|
2012-05-18 08:50:10 +01:00
|
|
|
src = fetchurl {
|
2015-03-26 20:21:15 +00:00
|
|
|
url = "http://haproxy.1wt.eu/download/${majorVersion}/src/${name}.tar.gz";
|
2015-07-09 19:19:07 +01:00
|
|
|
sha256 = "16cg1jmy2d8mq2ypwifsvhbyp4pyrj0zm0r818sx0r4hchwdsrcm";
|
2012-05-18 08:50:10 +01:00
|
|
|
};
|
|
|
|
|
2015-03-26 18:29:10 +00:00
|
|
|
buildInputs = [ openssl ];
|
2012-05-18 08:50:10 +01:00
|
|
|
|
2013-07-03 02:36:15 +01:00
|
|
|
# TODO: make it work on darwin/bsd as well
|
2012-05-18 08:50:10 +01:00
|
|
|
preConfigure = ''
|
2015-03-26 18:29:10 +00:00
|
|
|
export makeFlags="TARGET=linux2628 PREFIX=$out USE_OPENSSL=yes"
|
2012-05-18 08:50:10 +01:00
|
|
|
'';
|
2013-07-03 02:36:15 +01:00
|
|
|
|
2012-05-18 08:50:10 +01:00
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
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.
|
|
|
|
'';
|
2013-07-03 11:41:27 +01:00
|
|
|
homepage = http://haproxy.1wt.eu;
|
2013-07-03 02:36:15 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.garbas ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-03-26 18:32:37 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2012-05-18 08:50:10 +01:00
|
|
|
};
|
|
|
|
}
|