nixpkgs/pkgs/development/tools/pscale/default.nix

31 lines
762 B
Nix
Raw Normal View History

2021-07-03 08:32:03 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "pscale";
2022-03-27 06:48:05 +00:00
version = "0.90.0";
2021-07-03 08:32:03 +00:00
src = fetchFromGitHub {
owner = "planetscale";
repo = "cli";
rev = "v${version}";
2022-03-27 06:48:05 +00:00
sha256 = "sha256-uOKx367fFJQvoqakY5PmesOk2l9eYsnECf6AdO2NsuI=";
2021-07-03 08:32:03 +00:00
};
2022-03-27 06:48:05 +00:00
vendorSha256 = "sha256-IUntyI3EeYsf2tesvm0H+bNCtpnNfQV7WURLFvJXMac=";
ldflags = [
"-s" "-w"
"-X main.version=v${version}"
"-X main.commit=v${version}"
"-X main.date=unknown"
];
2021-07-03 08:32:03 +00:00
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 ];
};
}