Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ stdenv, lib, rustPlatform, fetchFromGitHub, installShellFiles, pkg-config, openssl, libiconv, testers, sqlx-cli, nix-update-script,}:
rustPlatform.buildRustPackage rec { pname = "sqlx-cli"; version = "0.8.6";
src = fetchFromGitHub { owner = "launchbadge"; repo = "sqlx"; rev = "v${version}"; hash = "sha256-Trnyrc17KWhX8QizKyBvXhTM7HHEqtywWgNqvQNMOAY="; };
cargoHash = "sha256-FxvzCe+dRfMUcPWA4lp4L6FJaSpMiXTqEyhzk+Dv1B8=";
buildNoDefaultFeatures = true; buildFeatures = [ "native-tls" "postgres" "sqlite" "mysql" "completions" ];
doCheck = false; cargoBuildFlags = [ "--package sqlx-cli" ];
nativeBuildInputs = [ installShellFiles pkg-config ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ 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; command = "sqlx --version"; };
passthru.updateScript = nix-update-script { };
meta = with lib; { description = "CLI 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 xrelkd fd ]; mainProgram = "sqlx"; };}