@@ -1,4 +1,5 @@
1−{ lib, fetchFromGitHub, rustPlatform, openssl, pkg-config, ncurses }:
1+{ lib, stdenv, fetchFromGitHub, rustPlatform, openssl, pkg-config, ncurses
2+, libiconv, Security }:
23
34rustPlatform.buildRustPackage rec {
45 version = "0.6.1";
@@ -14,7 +15,8 @@ rustPlatform.buildRustPackage rec {
1415 cargoSha256 = "0x4rvfnw3gl2aj6i006nkk3y1f8skyv8g0ss3z2v6qj9nhs7pyir";
1516
1617 nativeBuildInputs = [ pkg-config ];
17− buildInputs = [ openssl ncurses ];
18+ buildInputs = [ ncurses ]
19+ ++ (if stdenv.isDarwin then [ libiconv Security ] else [ openssl ]);
1820
1921 # Some tests fail and/or attempt to use internet servers.
2022 doCheck = false;