13 src = fetchFromGitHub {
14 owner = "tursodatabase";
17 hash = "sha256-6Ci1QESSN6wNpUAQoWtTyHWrGaI/3xs/jGCSkJsYC8o=";
20 vendorHash = "sha256-tBO21IgUczwMgrEyV7scV3YTY898lYHASaLeXqvBopU=";
22 nativeBuildInputs = [ installShellFiles ];
25 "-X github.com/tursodatabase/turso-cli/internal/cmd.version=v${version}"
29 export HOME=$(mktemp -d)
32 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
33 installShellCompletion --cmd turso \
34 --bash <($out/bin/turso completion bash) \
35 --fish <($out/bin/turso completion fish) \
36 --zsh <($out/bin/turso completion zsh)
39 passthru.updateScript = nix-update-script { };
42 description = "This is the command line interface (CLI) to Turso";
43 homepage = "https://turso.tech";
44 mainProgram = "turso";
45 license = licenses.mit;
46 maintainers = with maintainers; [ zestsystem kashw2 fryuni ];