tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
pgcenter: init at 0.5.0
Mario Rodas
7 years ago
b7c28485
5f1bb369
+138
3 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
pgcenter
default.nix
deps.nix
top-level
all-packages.nix
+24
pkgs/tools/misc/pgcenter/default.nix
···
1
1
+
{ stdenv, buildGoPackage, fetchFromGitHub }:
2
2
+
3
3
+
buildGoPackage rec {
4
4
+
name = "pgcenter-${version}";
5
5
+
version = "0.5.0";
6
6
+
7
7
+
goPackagePath = "github.com/lesovsky/pgcenter";
8
8
+
9
9
+
src = fetchFromGitHub {
10
10
+
owner = "lesovsky";
11
11
+
repo = "pgcenter";
12
12
+
rev = "v${version}";
13
13
+
sha256 = "1bbpzli8hh5356gink6byk085zyfwxi8wigdy5cbadppx4qnk078";
14
14
+
};
15
15
+
16
16
+
goDeps = ./deps.nix;
17
17
+
18
18
+
meta = with stdenv.lib; {
19
19
+
homepage = https://pgcenter.org/;
20
20
+
description = "Command-line admin tool for observing and troubleshooting PostgreSQL";
21
21
+
license = licenses.bsd3;
22
22
+
maintainers = [ maintainers.marsam ];
23
23
+
};
24
24
+
}
+112
pkgs/tools/misc/pgcenter/deps.nix
···
1
1
+
[
2
2
+
3
3
+
{
4
4
+
goPackagePath = "github.com/inconshreveable/mousetrap";
5
5
+
fetch = {
6
6
+
type = "git";
7
7
+
url = "https://github.com/inconshreveable/mousetrap";
8
8
+
rev = "v1.0.0";
9
9
+
sha256 = "1mn0kg48xkd74brf48qf5hzp0bc6g8cf5a77w895rl3qnlpfw152";
10
10
+
};
11
11
+
}
12
12
+
13
13
+
{
14
14
+
goPackagePath = "github.com/jehiah/go-strftime";
15
15
+
fetch = {
16
16
+
type = "git";
17
17
+
url = "https://github.com/jehiah/go-strftime";
18
18
+
rev = "1d33003b3869";
19
19
+
sha256 = "056zagn4zhmrcqg8y5k5wql01x4ijbxn4pv75bh1bn45by6qx1gv";
20
20
+
};
21
21
+
}
22
22
+
23
23
+
{
24
24
+
goPackagePath = "github.com/jroimartin/gocui";
25
25
+
fetch = {
26
26
+
type = "git";
27
27
+
url = "https://github.com/jroimartin/gocui";
28
28
+
rev = "v0.4.0";
29
29
+
sha256 = "1b1cbjg925l1c5v3ls8amni9716190yzf847cqs9wjnj82z8qa47";
30
30
+
};
31
31
+
}
32
32
+
33
33
+
{
34
34
+
goPackagePath = "github.com/lib/pq";
35
35
+
fetch = {
36
36
+
type = "git";
37
37
+
url = "https://github.com/lib/pq";
38
38
+
rev = "v1.0.0";
39
39
+
sha256 = "1zqnnyczaf00xi6xh53vq758v5bdlf0iz7kf22l02cal4i6px47i";
40
40
+
};
41
41
+
}
42
42
+
43
43
+
{
44
44
+
goPackagePath = "github.com/mattn/go-runewidth";
45
45
+
fetch = {
46
46
+
type = "git";
47
47
+
url = "https://github.com/mattn/go-runewidth";
48
48
+
rev = "v0.0.3";
49
49
+
sha256 = "0lc39b6xrxv7h3v3y1kgz49cgi5qxwlygs715aam6ba35m48yi7g";
50
50
+
};
51
51
+
}
52
52
+
53
53
+
{
54
54
+
goPackagePath = "github.com/nsf/termbox-go";
55
55
+
fetch = {
56
56
+
type = "git";
57
57
+
url = "https://github.com/nsf/termbox-go";
58
58
+
rev = "b66b20ab708e";
59
59
+
sha256 = "0wrgnwfdxrspni5q15vzr5q1bxnzb7m6q4xjhllcyddgn2zqprsa";
60
60
+
};
61
61
+
}
62
62
+
63
63
+
{
64
64
+
goPackagePath = "github.com/pkg/errors";
65
65
+
fetch = {
66
66
+
type = "git";
67
67
+
url = "https://github.com/pkg/errors";
68
68
+
rev = "v0.8.0";
69
69
+
sha256 = "001i6n71ghp2l6kdl3qq1v2vmghcz3kicv9a5wgcihrzigm75pp5";
70
70
+
};
71
71
+
}
72
72
+
73
73
+
{
74
74
+
goPackagePath = "github.com/spf13/cobra";
75
75
+
fetch = {
76
76
+
type = "git";
77
77
+
url = "https://github.com/spf13/cobra";
78
78
+
rev = "v0.0.3";
79
79
+
sha256 = "1q1nsx05svyv9fv3fy6xv6gs9ffimkyzsfm49flvl3wnvf1ncrkd";
80
80
+
};
81
81
+
}
82
82
+
83
83
+
{
84
84
+
goPackagePath = "github.com/spf13/pflag";
85
85
+
fetch = {
86
86
+
type = "git";
87
87
+
url = "https://github.com/spf13/pflag";
88
88
+
rev = "v1.0.2";
89
89
+
sha256 = "005598piihl3l83a71ahj10cpq9pbhjck4xishx1b4dzc02r9xr2";
90
90
+
};
91
91
+
}
92
92
+
93
93
+
{
94
94
+
goPackagePath = "golang.org/x/crypto";
95
95
+
fetch = {
96
96
+
type = "git";
97
97
+
url = "https://go.googlesource.com/crypto";
98
98
+
rev = "0e37d006457b";
99
99
+
sha256 = "1fj8rvrhgv5j8pmckzphvm3sqkzhcqp3idkxvgv13qrjdfycsa5r";
100
100
+
};
101
101
+
}
102
102
+
103
103
+
{
104
104
+
goPackagePath = "golang.org/x/sys";
105
105
+
fetch = {
106
106
+
type = "git";
107
107
+
url = "https://go.googlesource.com/sys";
108
108
+
rev = "ee1b12c67af4";
109
109
+
sha256 = "0cgp0xzbhg3fr77n2qrfmmsvhc287srnwi4mghwcjdxp6rx0s988";
110
110
+
};
111
111
+
}
112
112
+
]
+2
pkgs/top-level/all-packages.nix
···
4794
4794
4795
4795
pg_top = callPackage ../tools/misc/pg_top { };
4796
4796
4797
4797
+
pgcenter = callPackage ../tools/misc/pgcenter { };
4798
4798
+
4797
4799
pgmetrics = callPackage ../tools/misc/pgmetrics { };
4798
4800
4799
4801
pdsh = callPackage ../tools/networking/pdsh {