turso-cli: enable tests, reordering
This commit is contained in:
parent
77544893d1
commit
3725055979
@ -9,8 +9,6 @@ buildGo121Module rec {
|
|||||||
pname = "turso-cli";
|
pname = "turso-cli";
|
||||||
version = "0.85.3";
|
version = "0.85.3";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tursodatabase";
|
owner = "tursodatabase";
|
||||||
repo = "turso-cli";
|
repo = "turso-cli";
|
||||||
@ -20,6 +18,8 @@ buildGo121Module rec {
|
|||||||
|
|
||||||
vendorHash = "sha256-Hv4CacBrRX2YT3AkbNzyWrA9Ex6YMDPrPvezukwMkTE=";
|
vendorHash = "sha256-Hv4CacBrRX2YT3AkbNzyWrA9Ex6YMDPrPvezukwMkTE=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
# Build with production code
|
# Build with production code
|
||||||
tags = ["prod"];
|
tags = ["prod"];
|
||||||
# Include version for `turso --version` reporting
|
# Include version for `turso --version` reporting
|
||||||
@ -27,6 +27,10 @@ buildGo121Module rec {
|
|||||||
echo "v${version}" > internal/cmd/version.txt
|
echo "v${version}" > internal/cmd/version.txt
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd turso \
|
installShellCompletion --cmd turso \
|
||||||
--bash <($out/bin/turso completion bash) \
|
--bash <($out/bin/turso completion bash) \
|
||||||
@ -34,9 +38,6 @@ buildGo121Module rec {
|
|||||||
--zsh <($out/bin/turso completion zsh)
|
--zsh <($out/bin/turso completion zsh)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Test_setDatabasesCache fails due to /homeless-shelter: read-only file system error.
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
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