2021-05-11 04:13:12 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-08-27 14:35:38 +00:00
|
|
|
|
2021-05-11 04:13:12 +00:00
|
|
|
buildGoModule rec {
|
2019-08-27 14:35:38 +00:00
|
|
|
pname = "gitlab-ci-pipelines-exporter";
|
2022-03-08 03:59:38 +00:00
|
|
|
version = "0.5.3";
|
2019-08-27 14:35:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mvisonneau";
|
|
|
|
repo = pname;
|
2021-05-11 04:13:12 +00:00
|
|
|
rev = "v${version}";
|
2022-03-08 03:59:38 +00:00
|
|
|
sha256 = "1i0ry93w2pk8m7i4fbdn1xvsmvjn83d6lr6l7yywid9d0kmkjz13";
|
2019-08-27 14:35:38 +00:00
|
|
|
};
|
|
|
|
|
2022-03-08 03:59:38 +00:00
|
|
|
subPackages = [ "cmd/${pname}" ];
|
2021-05-11 04:13:12 +00:00
|
|
|
|
2022-03-08 03:59:38 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.version=v${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
vendorSha256 = "UszZaxql5sO4DSDVD/UIjeeDojCQEPF+ATL7O9MaTG8=";
|
2019-08-27 14:35:38 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-27 14:35:38 +00:00
|
|
|
description = "Prometheus / OpenMetrics exporter for GitLab CI pipelines insights";
|
|
|
|
homepage = "https://github.com/mvisonneau/gitlab-ci-pipelines-exporter";
|
|
|
|
license = licenses.asl20;
|
2022-03-07 09:40:59 +00:00
|
|
|
maintainers = with maintainers; [ mmahut mvisonneau ];
|
2019-08-27 14:35:38 +00:00
|
|
|
};
|
|
|
|
}
|