summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorEmily <vcs@emily.moe>2021-09-14 04:30:39 +0100
committerEmily <vcs@emily.moe>2021-09-14 06:50:35 +0100
commit9d3086d862fe10508c1e5685125d3fe0ab308b51 (patch)
treefb8c5c8e80eb99b5fd265224231fec54ad316c08 /pkgs
parenta04e858da4b111636f758f01e1ddc726780b1e52 (diff)
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.
Diffstat (limited to 'pkgs')
-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/";