2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-10-27 13:39:49 +01:00
|
|
|
|
2019-06-11 21:00:48 +01:00
|
|
|
buildGoModule rec {
|
2019-03-13 22:48:57 +00:00
|
|
|
pname = "pgcenter";
|
2021-03-12 13:10:52 +00:00
|
|
|
version = "0.8.0";
|
2018-10-27 13:39:49 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lesovsky";
|
|
|
|
repo = "pgcenter";
|
|
|
|
rev = "v${version}";
|
2021-03-12 13:10:52 +00:00
|
|
|
sha256 = "sha256-ow26wuM7nw/WbeaPVcNm5iYUYLydeujhw+7BcTirPcA=";
|
2018-10-27 13:39:49 +01:00
|
|
|
};
|
|
|
|
|
2021-02-14 06:00:17 +00:00
|
|
|
vendorSha256 = "sha256-9hYiyZ34atmSL7JvuXyiGU7HR4E6qN7bGZlyU+hP+FU=";
|
2018-10-27 13:39:49 +01:00
|
|
|
|
2021-02-14 06:00:18 +00:00
|
|
|
subPackages = [ "cmd" ];
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-w -s -X main.gitTag=${src.rev} -X main.gitCommit=${src.rev} -X main.gitBranch=master" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cmd $out/bin/pgcenter
|
|
|
|
'';
|
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pgcenter.org/";
|
2018-10-27 13:39:49 +01:00
|
|
|
description = "Command-line admin tool for observing and troubleshooting PostgreSQL";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|