mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
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,
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user