Merge pull request #261729 from Fryuni/turso

turso-cli: 0.85.3 -> 0.86.3
This commit is contained in:
Weijia Wang 2023-10-18 21:13:48 +02:00 committed by GitHub
commit edad0ccbcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,28 +4,26 @@
buildGo121Module,
fetchFromGitHub,
installShellFiles,
nix-update-script,
}:
buildGo121Module rec {
pname = "turso-cli";
version = "0.85.3";
version = "0.86.3";
src = fetchFromGitHub {
owner = "tursodatabase";
repo = "turso-cli";
rev = "v${version}";
hash = "sha256-dJpHrqPyikkUnE4Un1fGOEJL49U5IiInYeSWmI04r18=";
hash = "sha256-hTqjNQSScQzCUBs4pYgxRnRvUSoQXXeZIceSZAR1Oa0=";
};
vendorHash = "sha256-Hv4CacBrRX2YT3AkbNzyWrA9Ex6YMDPrPvezukwMkTE=";
vendorHash = "sha256-EqND/W+NNatoBUMXWrsjNPfxAtX0oUASUxN6Rmhp7SQ=";
nativeBuildInputs = [ installShellFiles ];
# Build with production code
tags = ["prod"];
# Include version for `turso --version` reporting
preBuild = ''
echo "v${version}" > internal/cmd/version.txt
'';
ldflags = [
"-X github.com/tursodatabase/turso-cli/internal/cmd.version=v${version}"
];
preCheck = ''
export HOME=$(mktemp -d)
@ -38,6 +36,8 @@ buildGo121Module rec {
--zsh <($out/bin/turso completion zsh)
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "This is the command line interface (CLI) to Turso.";
homepage = "https://turso.tech";