blob: e84db93fb5fa826f8a0217d3c59ff8312b7a0586 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "pgcenter";
version = "0.11.0";
src = fetchFromGitHub {
owner = "lesovsky";
repo = "pgcenter";
rev = "v${finalAttrs.version}";
sha256 = "sha256-sIdCcle7s9ZL8XlEd09yGgq/gC5YDVONzm5Fj9z0lLw=";
};
vendorHash = "sha256-nHPS/iLHQwM39UYpajQRAbZcK7PxTPU0mO2HapDRFDU=";
subPackages = [ "cmd" ];
ldflags = [
"-w"
"-s"
"-X main.gitTag=${finalAttrs.src.rev}"
"-X main.gitCommit=${finalAttrs.src.rev}"
"-X main.gitBranch=master"
];
postInstall = ''
mv $out/bin/cmd $out/bin/pgcenter
'';
doCheck = false;
meta = {
homepage = "https://github.com/lesovsky/pgcenter";
changelog = "https://github.com/lesovsky/pgcenter/raw/v${finalAttrs.version}/doc/Changelog";
description = "Command-line admin tool for observing and troubleshooting PostgreSQL";
license = lib.licenses.bsd3;
maintainers = [ ];
mainProgram = "pgcenter";
};
})
|