wrangler: build against system OpenSSL

Wrangler was built against a vendored, static OpenSSL. Use the system
OpenSSL instead to benefit from security updates, etc.
This commit is contained in:
Daniël de Kok 2021-03-04 10:40:58 +01:00
parent 374f9a7c3b
commit 3e2943ab8e

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, curl, Security, CoreServices, CoreFoundation, perl }:
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, curl, Security, CoreServices, CoreFoundation }:
rustPlatform.buildRustPackage rec {
pname = "wrangler";
@ -13,12 +13,13 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0w845virvw7mvibc76ar2hbffhfzj2v8v1xkrsssrgzyaryb48jk";
nativeBuildInputs = [ perl ]
++ lib.optionals stdenv.isLinux [ pkg-config ];
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ curl CoreFoundation CoreServices Security ];
OPENSSL_NO_VENDOR = 1;
# tries to use "/homeless-shelter" and fails
doCheck = false;