{ lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "pscale"; version = "0.112.0"; src = fetchFromGitHub { owner = "planetscale"; repo = "cli"; rev = "v${version}"; sha256 = "sha256-Q2qZI5Y+qyt71orPh9zNfEylBeJw4o9SA3BnlI/h5yg="; }; vendorSha256 = "sha256-MZUd8muhso8a6Houv1Mf/6+SC0hD4UnjIFssB9wscaQ="; ldflags = [ "-s" "-w" "-X main.version=v${version}" "-X main.commit=v${version}" "-X main.date=unknown" ]; meta = with lib; { homepage = "https://www.planetscale.com/"; changelog = "https://github.com/planetscale/cli/releases/tag/v${version}"; description = "The CLI for PlanetScale Database"; license = licenses.asl20; maintainers = with maintainers; [ pimeys ]; }; }