@@ -1,4 +1,5 @@
1−{ lib, stdenv, fetchFromGitHub, pkg-config, openssl, rustPlatform, Security, makeWrapper, bash }:
1+{ lib, stdenv, fetchFromGitHub, pkg-config, openssl, rustPlatform, libiconv
2+, Security, makeWrapper, bash }:
23
34rustPlatform.buildRustPackage rec {
45 pname = "websocat";
@@ -15,7 +16,8 @@ rustPlatform.buildRustPackage rec {
1516 cargoSha256 = "sha256-+3SG1maarY4DJ4+QiYGwltGLksOoOhKtcqstRwgzi2k=";
1617
1718 nativeBuildInputs = [ pkg-config makeWrapper ];
18− buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
19+ buildInputs = [ openssl ]
20+ ++ lib.optionals stdenv.isDarwin [ libiconv Security ];
1921
2022 # Needed to get openssl-sys to use pkg-config.
2123 OPENSSL_NO_VENDOR=1;