From 7638951545e546521f85c129674e961f999d3289 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 11 Aug 2024 14:19:49 -0400 Subject: [PATCH] whois: link libiconv on Darwin --- pkgs/tools/networking/whois/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/networking/whois/default.nix b/pkgs/tools/networking/whois/default.nix index 9855a948783af..fc122ebd2f76a 100644 --- a/pkgs/tools/networking/whois/default.nix +++ b/pkgs/tools/networking/whois/default.nix @@ -19,6 +19,11 @@ stdenv.mkDerivation rec { }) ]; + env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { + # whois fails to link libiconv on Darwin. + NIX_LDFLAGS = "-liconv"; + }; + nativeBuildInputs = [ perl gettext pkg-config ]; buildInputs = [ libidn2 libiconv ];