13 src = fetchFromGitHub {
14 owner = "planetscale";
17 sha256 = "sha256-Dgp4N4R239NSewHJ7iVhWwfoppXsnhhL8ZrDEbiM9v4=";
20 vendorHash = "sha256-0rzX54AdlFvvYhfZvS3qBxV4bIF2li8HwKdtm0jS04g=";
24 "-X main.version=v${version}"
25 "-X main.commit=v${version}"
26 "-X main.date=unknown"
29 nativeBuildInputs = [ installShellFiles ];
32 installShellCompletion --cmd pscale \
33 --bash <($out/bin/pscale completion bash) \
34 --fish <($out/bin/pscale completion fish) \
35 --zsh <($out/bin/pscale completion zsh)
38 passthru.tests.version = testers.testVersion {
43 description = "The CLI for PlanetScale Database";
44 mainProgram = "pscale";
45 changelog = "https://github.com/planetscale/cli/releases/tag/v${version}";
46 homepage = "https://www.planetscale.com/";
47 license = licenses.asl20;
48 maintainers = with maintainers; [ pimeys kashw2 ];