Skip to content

Commit

Permalink
sqlx-cli: use openssl instead of rustls
Browse files Browse the repository at this point in the history
  • Loading branch information
fd authored and AndersonTorres committed Sep 8, 2023
1 parent 3d7fb67 commit 07d688c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions pkgs/development/tools/rust/sqlx-cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
, fetchFromGitHub
, installShellFiles
, pkg-config
, openssl
, libiconv
, testers
, sqlx-cli
Expand All @@ -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
Expand Down

0 comments on commit 07d688c

Please sign in to comment.