summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-05-23 08:50:33 +0800
committerGitHub <noreply@github.com>2022-05-23 08:50:33 +0800
commit66782715d8e56e8ce7ef5bc32799554d668120f6 (patch)
tree8d754c3a353c868c74cba0686d304095e91c1a07
parenta27585d1469758be2725045dc3104262f4d14fa0 (diff)
parent61e1418f8affb9616f71d26c14e01824a722bcde (diff)
Merge pull request #173507 from shanesveller/shanesveller/sqlx-cli-0.5.13
sqlx-cli: 0.5.11 -> 0.5.13
-rw-r--r--pkgs/development/tools/rust/sqlx-cli/default.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/pkgs/development/tools/rust/sqlx-cli/default.nix b/pkgs/development/tools/rust/sqlx-cli/default.nix
index 005c5cfc4749..f20864b43f33 100644
--- a/pkgs/development/tools/rust/sqlx-cli/default.nix
+++ b/pkgs/development/tools/rust/sqlx-cli/default.nix
@@ -1,17 +1,17 @@
-{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, SystemConfiguration, CoreFoundation, Security, libiconv }:
+{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, SystemConfiguration, CoreFoundation, Security, libiconv, testers, sqlx-cli }:
rustPlatform.buildRustPackage rec {
pname = "sqlx-cli";
- version = "0.5.11";
+ version = "0.5.13";
src = fetchFromGitHub {
owner = "launchbadge";
repo = "sqlx";
rev = "v${version}";
- sha256 = "sha256-Tz7YzGkQUwH0U14dvsttP2GpnM9kign6L9PkAVs3dEc=";
+ sha256 = "sha256-uUIvzUDDv6WUA25zMhaL2Tn3wHTu/IRgzmnB119BLvk=";
};
- cargoSha256 = "sha256-EKuRaVxwotgTPj95GJnrQGbulsFPClSettwS5f0TzoM=";
+ cargoSha256 = "sha256-IHbOuW2FPt2cH0/ld28fp1uBrJadVsJ8izG0JrZy488=";
doCheck = false;
cargoBuildFlags = [ "-p sqlx-cli" ];
@@ -20,6 +20,11 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ SystemConfiguration CoreFoundation Security libiconv ];
+ passthru.tests.version = testers.testVersion {
+ package = sqlx-cli;
+ command = "sqlx --version";
+ };
+
meta = with lib; {
description =
"SQLx's associated command-line utility for managing databases, migrations, and enabling offline mode with sqlx::query!() and friends.";