mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
31 lines
762 B
Nix
31 lines
762 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "pscale";
|
|
version = "0.90.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "planetscale";
|
|
repo = "cli";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-uOKx367fFJQvoqakY5PmesOk2l9eYsnECf6AdO2NsuI=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-IUntyI3EeYsf2tesvm0H+bNCtpnNfQV7WURLFvJXMac=";
|
|
|
|
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 ];
|
|
};
|
|
}
|