summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/networking/jwhois/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/jwhois/default.nix')
-rw-r--r--pkgs/tools/networking/jwhois/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/networking/jwhois/default.nix b/pkgs/tools/networking/jwhois/default.nix
index 5a79a09281c3..025169a9fd35 100644
--- a/pkgs/tools/networking/jwhois/default.nix
+++ b/pkgs/tools/networking/jwhois/default.nix
@@ -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/";