2013-07-03 03:36:15 +02:00
|
|
|
{ stdenv, pkgs, fetchurl }:
|
2012-05-18 09:50:10 +02:00
|
|
|
|
2013-07-03 03:36:15 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-06-01 15:40:37 +02:00
|
|
|
version = "1.4.25";
|
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 {
|
2013-07-03 03:36:15 +02:00
|
|
|
url = "http://haproxy.1wt.eu/download/1.4/src/${name}.tar.gz";
|
2014-06-01 15:40:37 +02:00
|
|
|
sha256 = "0qnvj6kbnrrc69nsp2dn5iv2z79adzkcgqssnk30iwvvwg0qwh44";
|
2012-05-18 09:50:10 +02:00
|
|
|
};
|
|
|
|
|
2013-07-03 03:36:15 +02:00
|
|
|
buildInputs = [ ];
|
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 = ''
|
2013-07-03 03:36:15 +02:00
|
|
|
export makeFlags="TARGET=linux2628 PREFIX=$out"
|
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;
|
2014-03-12 21:20:01 +01:00
|
|
|
/* TODO license = [
|
2013-07-03 12:41:27 +02:00
|
|
|
stdenv.lib.licenses.gpl2
|
|
|
|
stdenv.lib.licenses.lgpl21
|
2014-03-12 21:20:01 +01:00
|
|
|
];*/
|
2012-05-18 09:50:10 +02:00
|
|
|
};
|
|
|
|
}
|