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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
762 B
Nix
Raw Normal View History

2021-07-03 10:32:03 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "pscale";
2022-03-27 08:48:05 +02:00
version = "0.90.0";
2021-07-03 10:32:03 +02:00
src = fetchFromGitHub {
owner = "planetscale";
repo = "cli";
rev = "v${version}";
2022-03-27 08:48:05 +02:00
sha256 = "sha256-uOKx367fFJQvoqakY5PmesOk2l9eYsnECf6AdO2NsuI=";
2021-07-03 10:32:03 +02:00
};
2022-03-27 08:48:05 +02: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 10:32:03 +02: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 ];
};
}