Loading pkgs/development/tools/rust/sqlx-cli/default.nix +23 −8 Original line number Diff line number Diff line Loading @@ -2,14 +2,14 @@ , lib , rustPlatform , fetchFromGitHub , installShellFiles , pkg-config , openssl , SystemConfiguration , CoreFoundation , Security , libiconv , testers , sqlx-cli , CoreFoundation , Security , SystemConfiguration }: rustPlatform.buildRustPackage rec { Loading @@ -26,11 +26,26 @@ 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.isDarwin [ CoreFoundation Security SystemConfiguration libiconv ]; nativeBuildInputs = [ pkg-config ]; buildInputs = lib.optionals stdenv.isLinux [ openssl ] ++ lib.optionals stdenv.isDarwin [ SystemConfiguration CoreFoundation Security libiconv ]; postInstall = '' for shell in bash fish zsh; do $out/bin/sqlx completions $shell > sqlx.$shell installShellCompletion sqlx.$shell done ''; passthru.tests.version = testers.testVersion { package = sqlx-cli; Loading Loading
pkgs/development/tools/rust/sqlx-cli/default.nix +23 −8 Original line number Diff line number Diff line Loading @@ -2,14 +2,14 @@ , lib , rustPlatform , fetchFromGitHub , installShellFiles , pkg-config , openssl , SystemConfiguration , CoreFoundation , Security , libiconv , testers , sqlx-cli , CoreFoundation , Security , SystemConfiguration }: rustPlatform.buildRustPackage rec { Loading @@ -26,11 +26,26 @@ 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.isDarwin [ CoreFoundation Security SystemConfiguration libiconv ]; nativeBuildInputs = [ pkg-config ]; buildInputs = lib.optionals stdenv.isLinux [ openssl ] ++ lib.optionals stdenv.isDarwin [ SystemConfiguration CoreFoundation Security libiconv ]; postInstall = '' for shell in bash fish zsh; do $out/bin/sqlx completions $shell > sqlx.$shell installShellCompletion sqlx.$shell done ''; passthru.tests.version = testers.testVersion { package = sqlx-cli; Loading