aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tools/networking/haproxy/default.nix
diff options
context:
space:
mode:
authorPatrick Mahoney <pat@polycrystal.org>2017-03-07 11:50:45 -0600
committerPatrick Mahoney <pat@polycrystal.org>2017-03-07 11:50:45 -0600
commitce03c08567a87d968bb535d8786e39b8ffafaa2b (patch)
treeadf761a8fc6c7bc60ac7bdfe144abf5729c8fc36 /pkgs/tools/networking/haproxy/default.nix
parenteba71df6bc2b30cef389a659223590ccc06b7483 (diff)
haproxy: build on darwin
Diffstat (limited to 'pkgs/tools/networking/haproxy/default.nix')
-rw-r--r--pkgs/tools/networking/haproxy/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/networking/haproxy/default.nix b/pkgs/tools/networking/haproxy/default.nix
index 7d9c00ecaaf3..1b917019662a 100644
--- a/pkgs/tools/networking/haproxy/default.nix
+++ b/pkgs/tools/networking/haproxy/default.nix
@@ -14,9 +14,9 @@ stdenv.mkDerivation rec {
buildInputs = [ openssl zlib ];
- # TODO: make it work on darwin/bsd as well
+ # TODO: make it work on bsd as well
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 = {
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
'';
homepage = http://haproxy.1wt.eu;
maintainers = [ stdenv.lib.maintainers.garbas ];
- platforms = stdenv.lib.platforms.linux;
+ platforms = with stdenv.lib.platforms; linux ++ darwin;
license = stdenv.lib.licenses.gpl2;
};
}