diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-05 12:43:14 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-05 12:43:14 +0200 |
commit | 37250559790d104450693425a49e5833834e9663 (patch) | |
tree | 9b13140c8702153fa0e4cef192744532baeecf8f /pkgs/development/tools/turso-cli | |
parent | 77544893d1171dc76c3dd625d4c817dd5be85ce5 (diff) |
turso-cli: enable tests, reordering
Diffstat (limited to 'pkgs/development/tools/turso-cli')
-rw-r--r-- | pkgs/development/tools/turso-cli/default.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/development/tools/turso-cli/default.nix b/pkgs/development/tools/turso-cli/default.nix index ef5ebe3dd1849..0859e1a362c20 100644 --- a/pkgs/development/tools/turso-cli/default.nix +++ b/pkgs/development/tools/turso-cli/default.nix @@ -9,8 +9,6 @@ buildGo121Module rec { pname = "turso-cli"; version = "0.85.3"; - nativeBuildInputs = [ installShellFiles ]; - src = fetchFromGitHub { owner = "tursodatabase"; repo = "turso-cli"; @@ -20,6 +18,8 @@ buildGo121Module rec { vendorHash = "sha256-Hv4CacBrRX2YT3AkbNzyWrA9Ex6YMDPrPvezukwMkTE="; + nativeBuildInputs = [ installShellFiles ]; + # Build with production code tags = ["prod"]; # Include version for `turso --version` reporting @@ -27,6 +27,10 @@ buildGo121Module rec { echo "v${version}" > internal/cmd/version.txt ''; + preCheck = '' + export HOME=$(mktemp -d) + ''; + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd turso \ --bash <($out/bin/turso completion bash) \ @@ -34,9 +38,6 @@ buildGo121Module rec { --zsh <($out/bin/turso completion zsh) ''; - # Test_setDatabasesCache fails due to /homeless-shelter: read-only file system error. - doCheck = false; - meta = with lib; { description = "This is the command line interface (CLI) to Turso."; homepage = "https://turso.tech"; |