13 src = fetchFromGitHub {
14 owner = "planetscale";
17 sha256 = "sha256-gvz05VquRLKXMf45pxFAZCtyGWpn/DgOjRCHU6jTI/E=";
20 vendorSha256 = "sha256-HPlzro95wIYLwG1Sq5cgVFmUpEfKlhfWLfQTDS5c3bg=";
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 changelog = "https://github.com/planetscale/cli/releases/tag/v${version}";
45 homepage = "https://www.planetscale.com/";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ pimeys ];