8e65f7f0cc
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
30 lines
1,023 B
Nix
30 lines
1,023 B
Nix
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, SystemConfiguration, CoreFoundation, Security, libiconv }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sqlx-cli";
|
|
version = "0.5.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "launchbadge";
|
|
repo = "sqlx";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Tz7YzGkQUwH0U14dvsttP2GpnM9kign6L9PkAVs3dEc=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-EKuRaVxwotgTPj95GJnrQGbulsFPClSettwS5f0TzoM=";
|
|
|
|
doCheck = false;
|
|
cargoBuildFlags = [ "-p sqlx-cli" ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ SystemConfiguration CoreFoundation Security libiconv ];
|
|
|
|
meta = with lib; {
|
|
description =
|
|
"SQLx's associated command-line utility for managing databases, migrations, and enabling offline mode with sqlx::query!() and friends.";
|
|
homepage = "https://github.com/launchbadge/sqlx";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ greizgh ];
|
|
};
|
|
}
|