sqlx-cli: use openssl instead of rustls
This commit is contained in:
parent
3d7fb6794e
commit
07d688c98d
|
@ -4,6 +4,7 @@
|
|||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, pkg-config
|
||||
, openssl
|
||||
, libiconv
|
||||
, testers
|
||||
, sqlx-cli
|
||||
|
@ -26,19 +27,23 @@ rustPlatform.buildRustPackage rec {
|
|||
cargoHash = "sha256-X7fLbih1s3sxn8vb2kQeFUKDK2DlC+sjm9ZTwj3FD1Y=";
|
||||
|
||||
doCheck = false;
|
||||
cargoBuildFlags = [ "--package sqlx-cli --no-default-features --features rustls,postgres,sqlite,mysql,completions" ];
|
||||
cargoBuildFlags = [ "--package sqlx-cli --no-default-features --features native-tls,postgres,sqlite,mysql,completions" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
CoreFoundation
|
||||
Security
|
||||
SystemConfiguration
|
||||
libiconv
|
||||
];
|
||||
buildInputs =
|
||||
lib.optionals stdenv.isLinux [
|
||||
openssl
|
||||
] ++
|
||||
lib.optionals stdenv.isDarwin [
|
||||
CoreFoundation
|
||||
Security
|
||||
SystemConfiguration
|
||||
libiconv
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
for shell in bash fish zsh; do
|
||||
|
|
Loading…
Reference in a new issue