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