whois: link libiconv on Darwin

This commit is contained in:
Randy Eckenrode 2024-08-11 14:19:49 -04:00
parent c31898adf5
commit 7638951545
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

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 ];