Merge pull request #123550 from stephank/fix-trunk-darwin

trunk: fix darwin build
This commit is contained in:
Jörg Thalheim
2021-05-18 21:18:08 +01:00
committed by GitHub
2 changed files with 8 additions and 3 deletions
+5 -2
View File
@@ -1,4 +1,5 @@
{ rustPlatform, fetchFromGitHub, pkg-config, openssl, lib }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
, openssl, libiconv, CoreServices, Security }:
rustPlatform.buildRustPackage rec {
pname = "trunk";
@@ -12,7 +13,9 @@ rustPlatform.buildRustPackage rec {
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
buildInputs = if stdenv.isDarwin
then [ libiconv CoreServices Security ]
else [ openssl ];
cargoSha256 = "Qv7knTmNYtw0tbyWhFIV7tYkQiwFxcNPAeNiGCyeV8s=";