2013-07-03 02:36:15 +01:00
|
|
|
{ stdenv, pkgs, fetchurl }:
|
2012-05-18 08:50:10 +01:00
|
|
|
|
2013-07-03 02:36:15 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.4.24";
|
|
|
|
name = "haproxy-${version}";
|
2012-05-18 08:50:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-03 02:36:15 +01:00
|
|
|
url = "http://haproxy.1wt.eu/download/1.4/src/${name}.tar.gz";
|
|
|
|
sha256 = "1vy7jz7l8qdd6ah3y65zarz9x9pf3bs02icxnrckpgh1s3s2h2b8";
|
2012-05-18 08:50:10 +01:00
|
|
|
};
|
|
|
|
|
2013-07-03 02:36:15 +01:00
|
|
|
buildInputs = [ ];
|
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 = ''
|
2013-07-03 02:36:15 +01:00
|
|
|
export makeFlags="TARGET=linux2628 PREFIX=$out"
|
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 = {
|
|
|
|
description = "HAProxy is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications.";
|
2013-07-03 02:36:15 +01:00
|
|
|
homepage = "http://haproxy.1wt.eu";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.garbas ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
license = [
|
|
|
|
pkgs.lib.licenses.gpl2
|
|
|
|
pkgs.lib.licenses.lgpl21
|
|
|
|
];
|
2012-05-18 08:50:10 +01:00
|
|
|
};
|
|
|
|
}
|