a29f39726d
GitOrigin-RevId: 39e6bf76474ce742eb027a88c4da6331f0a1526f
30 lines
1,005 B
Nix
30 lines
1,005 B
Nix
{ stdenv, lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, SystemConfiguration, CoreFoundation, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sqlx-cli";
|
|
version = "0.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "launchbadge";
|
|
repo = "sqlx";
|
|
rev = "v${version}";
|
|
sha256 = "0jz0gddw1xp51rnap0dsyq4886x2glmr087r1lf3fxlnv6anaqn9";
|
|
};
|
|
|
|
cargoSha256 = "046blw366d6zjpq944g9n4cdhhv2w97qfi1ynljc9bnz03d8v39c";
|
|
|
|
doCheck = false;
|
|
cargoBuildFlags = [ "-p sqlx-cli" ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ SystemConfiguration CoreFoundation Security ];
|
|
|
|
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 ];
|
|
};
|
|
}
|