@@ -1,4 +1,5 @@
1−{ rustPlatform, fetchFromGitHub, pkg-config, openssl, lib }:
1+{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
2+, openssl, libiconv, CoreServices, Security }:
23
34rustPlatform.buildRustPackage rec {
45 pname = "trunk";
@@ -12,7 +13,9 @@ rustPlatform.buildRustPackage rec {
1213 };
1314
1415 nativeBuildInputs = [ pkg-config ];
15− buildInputs = [ openssl ];
16+ buildInputs = if stdenv.isDarwin
17+ then [ libiconv CoreServices Security ]
18+ else [ openssl ];
1619
1720 cargoSha256 = "Qv7knTmNYtw0tbyWhFIV7tYkQiwFxcNPAeNiGCyeV8s=";
1821