sqlx-cli: fix darwin build (#117443)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl }:
|
||||
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, SystemConfiguration, CoreFoundation, Security }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "sqlx-cli";
|
||||
@@ -17,7 +17,8 @@ rustPlatform.buildRustPackage rec {
|
||||
cargoBuildFlags = [ "-p sqlx-cli" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ openssl ];
|
||||
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
|
||||
++ lib.optionals stdenv.isDarwin [ SystemConfiguration CoreFoundation Security ];
|
||||
|
||||
meta = with lib; {
|
||||
description =
|
||||
|
||||
Reference in New Issue
Block a user