git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #23608 from pmahoney/haproxy-darwin

haproxy: build on darwin

commitb05dc8d4bfd946c83c2fb08fc113c0e7f29f8bce authorDaiderd Jordan <daiderd@gmail.com> dateTue 7 Mar 2017, 21:03 (10 years ago) parentfeab711ce03c08
1 file changed+3−3
pkgs/tools/networking/haproxy/default.nix+3−3
pkgs/tools/networking/haproxy/default.nix+3−3
@@ -14,9 +14,9 @@ stdenv.mkDerivation rec {
1414
1515 buildInputs = [ openssl zlib ];
1616
17− # TODO: make it work on darwin/bsd as well
17+ # TODO: make it work on bsd as well
1818 preConfigure = ''
19− export makeFlags="TARGET=${if stdenv.isSunOS then "solaris" else "linux2628"} PREFIX=$out USE_OPENSSL=yes USE_ZLIB=yes"
19+ 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"}"
2020 '';
2121
2222 meta = {
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
3131 '';
3232 homepage = http://haproxy.1wt.eu;
3333 maintainers = [ stdenv.lib.maintainers.garbas ];
34− platforms = stdenv.lib.platforms.linux;
34+ platforms = with stdenv.lib.platforms; linux ++ darwin;
3535 license = stdenv.lib.licenses.gpl2;
3636 };
3737}