sqlx-cli: fix darwin build (#117443)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Raphael Megzari 2021-03-26 07:39:47 +09:00 committed by GitHub
parent ea2c9dd2dc
commit bb756400c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl }: { stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, SystemConfiguration, CoreFoundation, Security }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "sqlx-cli"; pname = "sqlx-cli";
@ -17,7 +17,8 @@ rustPlatform.buildRustPackage rec {
cargoBuildFlags = [ "-p sqlx-cli" ]; cargoBuildFlags = [ "-p sqlx-cli" ];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]; buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ SystemConfiguration CoreFoundation Security ];
meta = with lib; { meta = with lib; {
description = description =

View File

@ -11216,7 +11216,9 @@ in
jdk = oraclejdk; jdk = oraclejdk;
}; };
sqlx-cli = callPackage ../development/tools/rust/sqlx-cli { }; sqlx-cli = callPackage ../development/tools/rust/sqlx-cli {
inherit (darwin.apple_sdk.frameworks) SystemConfiguration CoreFoundation Security;
};
squeak = callPackage ../development/compilers/squeak { }; squeak = callPackage ../development/compilers/squeak { };