1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "aws-s3-exporter";
9 version = "0.5.0";
10
11 src = fetchFromGitHub {
12 owner = "ribbybibby";
13 repo = "s3_exporter";
14 rev = "v${version}";
15 sha256 = "sha256-dYkMCCAIlFDFOFUNJd4NvtAeJDTsHeJoH90b5pSGlQE=";
16 };
17
18 vendorHash = null;
19
20 ldflags = [
21 "-s"
22 "-w"
23 ];
24
25 meta = with lib; {
26 description = "Exports Prometheus metrics about S3 buckets and objects";
27 mainProgram = "s3_exporter";
28 homepage = "https://github.com/ribbybibby/s3_exporter";
29 license = licenses.asl20;
30 maintainers = [ maintainers.mmahut ];
31 };
32}