tw-rs: fix darwin build

This commit is contained in:
Daiderd Jordan 2017-09-22 19:44:09 +02:00
parent a7440aa7c6
commit 8a0d857aa9
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, rustPlatform, perl, zlib, openssl }:
{ stdenv, fetchFromGitHub, rustPlatform, perl, zlib, openssl, curl }:
rustPlatform.buildRustPackage rec {
name = "tw-rs-${version}";
@ -10,7 +10,9 @@ rustPlatform.buildRustPackage rec {
rev = "${version}";
sha256 = "1s1gk2wcs3792gdzrngksczz3gma5kv02ni2jqrhib8l6z8mg9ia";
};
buildInputs = [ perl zlib openssl ];
buildInputs = [ perl zlib openssl ]
++ stdenv.lib.optional stdenv.isDarwin curl;
depsSha256 = "1lg1jh6f9w28i94vaj62r859g6raalxmxabvw7av6sqr0hr56p05";