File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildGoModule ,
4+ fetchFromGitHub ,
5+ } :
6+
7+ buildGoModule rec {
8+ pname = "pgscv" ;
9+ version = "0.13.0" ;
10+
11+ src = fetchFromGitHub {
12+ owner = "CHERTS" ;
13+ repo = "pgscv" ;
14+ tag = "v${ version } " ;
15+ hash = "sha256-6qhJZHyVtEI4+pqi0dgagDC2RaISV9g/ygrezJO57Sk=" ;
16+ } ;
17+
18+ vendorHash = "sha256-KahDpLwk+6KXaIfvjr7+nkFuEV4Dw3pyshkJ5XUEdUg=" ;
19+
20+ ldflags = [
21+ "-X=main.appName=pgscv"
22+ "-X=main.gitTag=${ src . tag } "
23+ "-X=main.gitCommit=${ src . tag } "
24+ "-X=main.gitBranch=${ src . tag } "
25+ ] ;
26+
27+ # tests rely on a pretty complex Postgres setup
28+ doCheck = false ;
29+
30+ postInstall = ''
31+ mv $out/bin/{cmd,pgscv}
32+ '' ;
33+
34+ meta = {
35+ description = "PgSCV is a PostgreSQL ecosystem metrics collector" ;
36+ homepage = "https://github.com/CHERTS/pgscv/" ;
37+ changelog = "https://github.com/CHERTS/pgscv/releases/${ version } " ;
38+ license = lib . licenses . bsd3 ;
39+ platforms = lib . platforms . linux ;
40+ maintainers = with lib . maintainers ; [ k900 ] ;
41+ mainProgram = "pgscv" ;
42+ } ;
43+ }
You can’t perform that action at this time.
0 commit comments