Merge pull request #123545 from stephank/fix-websocat-darwin

websocat: fix darwin build
This commit is contained in:
Robert Scott
2021-05-19 00:15:24 +01:00
committed by GitHub

View File

@@ -1,4 +1,5 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, openssl, rustPlatform, Security, makeWrapper, bash }:
{ lib, stdenv, fetchFromGitHub, pkg-config, openssl, rustPlatform, libiconv
, Security, makeWrapper, bash }:
rustPlatform.buildRustPackage rec {
pname = "websocat";
@@ -15,7 +16,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-+3SG1maarY4DJ4+QiYGwltGLksOoOhKtcqstRwgzi2k=";
nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
# Needed to get openssl-sys to use pkg-config.
OPENSSL_NO_VENDOR=1;