haproxy: build on darwin
This commit is contained in:
parent
eba71df6bc
commit
ce03c08567
@ -14,9 +14,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ openssl zlib ];
|
buildInputs = [ openssl zlib ];
|
||||||
|
|
||||||
# TODO: make it work on darwin/bsd as well
|
# TODO: make it work on bsd as well
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export makeFlags="TARGET=${if stdenv.isSunOS then "solaris" else "linux2628"} PREFIX=$out USE_OPENSSL=yes USE_ZLIB=yes"
|
export makeFlags="TARGET=${if stdenv.isSunOS then "solaris" else if stdenv.isLinux then "linux2628" else "generic"} PREFIX=$out USE_OPENSSL=yes USE_ZLIB=yes ${stdenv.lib.optionalString stdenv.isDarwin "CC=cc USE_KQUEUE=1"}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
homepage = http://haproxy.1wt.eu;
|
homepage = http://haproxy.1wt.eu;
|
||||||
maintainers = [ stdenv.lib.maintainers.garbas ];
|
maintainers = [ stdenv.lib.maintainers.garbas ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = stdenv.lib.licenses.gpl2;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user