websocat: use buildFeatures

This commit is contained in:
figsoda 2021-11-15 19:12:55 -05:00
parent 0b95da3474
commit 1b7125db17

View File

@ -12,13 +12,14 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-jwoWxK4phBqhIeo3+oRnpGsfvtn9gTR1ryd4N+0Lmbw=";
};
cargoBuildFlags = [ "--features=ssl" ];
cargoSha256 = "sha256-+3SG1maarY4DJ4+QiYGwltGLksOoOhKtcqstRwgzi2k=";
nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
buildFeatures = [ "ssl" ];
# Needed to get openssl-sys to use pkg-config.
OPENSSL_NO_VENDOR=1;