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.
This commit is contained in:
Matthew Bauer 2019-08-24 20:14:16 -04:00
parent 4327a965a2
commit 5f770d4070

View File

@ -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;