2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-10-27 14:39:49 +02:00
|
|
|
|
2019-06-11 22:00:48 +02:00
|
|
|
buildGoModule rec {
|
2019-03-13 23:48:57 +01:00
|
|
|
pname = "pgcenter";
|
2021-08-17 15:31:55 +02:00
|
|
|
version = "0.9.2";
|
2018-10-27 14:39:49 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lesovsky";
|
|
|
|
repo = "pgcenter";
|
|
|
|
rev = "v${version}";
|
2021-08-17 15:31:55 +02:00
|
|
|
sha256 = "sha256-xaY01T12/5Peww9scRgfc5yHj7QA8BEwOK5l6OedziY=";
|
2018-10-27 14:39:49 +02:00
|
|
|
};
|
|
|
|
|
2021-08-17 15:31:55 +02:00
|
|
|
vendorSha256 = "sha256-9hYiyZ34atmSL7JvuXyiGU7HR4E6qN7bGZlyU+hP+FU=";
|
2018-10-27 14:39:49 +02:00
|
|
|
|
2021-02-14 07:00:18 +01:00
|
|
|
subPackages = [ "cmd" ];
|
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [ "-w" "-s" "-X main.gitTag=${src.rev}" "-X main.gitCommit=${src.rev}" "-X main.gitBranch=master" ];
|
2021-02-14 07:00:18 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cmd $out/bin/pgcenter
|
|
|
|
'';
|
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://pgcenter.org/";
|
2021-06-18 06:20:00 +02:00
|
|
|
changelog = "https://github.com/lesovsky/pgcenter/raw/v${version}/doc/Changelog";
|
2018-10-27 14:39:49 +02:00
|
|
|
description = "Command-line admin tool for observing and troubleshooting PostgreSQL";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|