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