diff --git a/pkgs/development/libraries/libnatspec/default.nix b/pkgs/development/libraries/libnatspec/default.nix index 1ec57144b1a0..65ea9086dce1 100644 --- a/pkgs/development/libraries/libnatspec/default.nix +++ b/pkgs/development/libraries/libnatspec/default.nix @@ -13,6 +13,10 @@ stdenv.mkDerivation rec { buildInputs = [ popt ]; + env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { + NIX_LDFLAGS = "-liconv"; + }; + propagatedBuildInputs = [ libiconv ]; meta = with lib; {