whois: link libiconv on Darwin (#346966)

This commit is contained in:
Emily
2024-10-07 03:54:20 +01:00
committed by GitHub
+5
View File
@@ -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 ];