about summary refs log tree commit diff
path: root/pkgs/tools/misc/man-db
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-08-24 20:14:16 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2019-08-24 20:14:16 -0400
commit5f770d4070e17a31618b4aea0af404f0b40213ac (patch)
treed7fcaffc6fe652cffe7f39c8fafdf281e1ff878c /pkgs/tools/misc/man-db
parent4327a965a25c917c158558554566e8381c0ce084 (diff)
man-db: handle building on darwin
this needs some weird manual autoconf settings to work. Most likely
some test is giving false positives, but I cannot figure out how.
Diffstat (limited to 'pkgs/tools/misc/man-db')
-rw-r--r--pkgs/tools/misc/man-db/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/misc/man-db/default.nix b/pkgs/tools/misc/man-db/default.nix
index 9a0164cf7949f..df1a2daddb910 100644
--- a/pkgs/tools/misc/man-db/default.nix
+++ b/pkgs/tools/misc/man-db/default.nix
@@ -38,6 +38,10 @@ stdenv.mkDerivation rec {
     "--with-config-file=${placeholder "out"}/etc/man_db.conf"
     "--with-systemdtmpfilesdir=${placeholder "out"}/lib/tmpfiles.d"
     "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
+  ] ++ stdenv.lib.optional stdenv.hostPlatform.isDarwin [
+    "ac_cv_func__set_invalid_parameter_handler=no"
+    "ac_cv_func_posix_fadvise=no"
+    "ac_cv_func_mempcpy=no"
   ];
 
   preConfigure = ''
@@ -67,7 +71,7 @@ stdenv.mkDerivation rec {
 
   enableParallelBuilding = true;
 
-  doCheck = !stdenv.hostPlatform.isMusl; /* iconv binary */
+  doCheck = !stdenv.hostPlatform.isMusl /* iconv binary */ && !stdenv.hostPlatform.isDarwin;
 
   meta = with stdenv.lib; {
     homepage = http://man-db.nongnu.org;