jwhois: fix on aarch64-darwin

This is somewhat of a hack, and other packages are certainly affected by
this issue (e.g. assh runs into it in some cgo code), but at least this
documents a workaround in-tree and gets one more package building now.
This commit is contained in:
Emily 2021-09-14 04:30:39 +01:00
parent a04e858da4
commit 9d3086d862

View File

@ -18,6 +18,11 @@ stdenv.mkDerivation rec {
makeFlags = [ "AR=${stdenv.cc.bintools.targetPrefix}ar" ];
# Work around error from <stdio.h> on aarch64-darwin:
# error: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
# TODO: this should probably be fixed at a lower level than this?
NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-Wno-undef-prefix";
meta = {
description = "A client for the WHOIS protocol allowing you to query the owner of a domain name";
homepage = "https://www.gnu.org/software/jwhois/";