diff options
author | xrelkd <46590321+xrelkd@users.noreply.github.com> | 2023-07-21 12:06:41 +0800 |
---|---|---|
committer | xrelkd <46590321+xrelkd@users.noreply.github.com> | 2023-07-21 16:28:28 +0800 |
commit | a0465cdf054a9476898a87301350ee467955ed09 (patch) | |
tree | 8be77b17c8e4238e86e3c6c3b02764f1a727cc2e /pkgs/development/tools/rust/sqlx-cli/default.nix | |
parent | 9adfaee104f3d0a3b639eab5b7ef8d7cbca5320b (diff) |
sqlx-cli: replace `native-tls` with `rustls`
Diffstat (limited to 'pkgs/development/tools/rust/sqlx-cli/default.nix')
-rw-r--r-- | pkgs/development/tools/rust/sqlx-cli/default.nix | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/pkgs/development/tools/rust/sqlx-cli/default.nix b/pkgs/development/tools/rust/sqlx-cli/default.nix index 5d640890f0ecc..74da630ff9388 100644 --- a/pkgs/development/tools/rust/sqlx-cli/default.nix +++ b/pkgs/development/tools/rust/sqlx-cli/default.nix @@ -4,7 +4,6 @@ , fetchFromGitHub , installShellFiles , pkg-config -, openssl , libiconv , testers , sqlx-cli @@ -27,21 +26,19 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-X7fLbih1s3sxn8vb2kQeFUKDK2DlC+sjm9ZTwj3FD1Y="; doCheck = false; - cargoBuildFlags = [ "-p sqlx-cli" ]; + cargoBuildFlags = [ "--package sqlx-cli --no-default-features --features rustls,postgres,sqlite,mysql,completions" ]; nativeBuildInputs = [ installShellFiles pkg-config ]; - buildInputs = - lib.optionals stdenv.isLinux [ openssl ] - ++ lib.optionals stdenv.isDarwin [ - CoreFoundation - Security - SystemConfiguration - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ + CoreFoundation + Security + SystemConfiguration + libiconv + ]; postInstall = '' for shell in bash fish zsh; do |