summary refs log tree commit diff
path: root/pkgs/servers/monitoring/prometheus/gitlab-ci-pipelines-exporter.nix
blob: 18055f9b06a0451214645f0e3c683a9d9431191f (plain) (blame)
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
{ lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "gitlab-ci-pipelines-exporter";
  version = "0.2.5";

  goPackagePath = "github.com/mvisonneau/gitlab-ci-pipelines-exporter";

  goDeps = ./gitlab-ci-pipelines-exporter_deps.nix;

  src = fetchFromGitHub {
    owner = "mvisonneau";
    repo = pname;
    rev = version;
    sha256 = "0qmy6pqfhx9bphgh1zqi68kp0nscwy1x7z13lfiaaz8pgsjh95yy";
  };

  doCheck = true;

  meta = with lib; {
    description = "Prometheus / OpenMetrics exporter for GitLab CI pipelines insights";
    homepage = "https://github.com/mvisonneau/gitlab-ci-pipelines-exporter";
    license = licenses.asl20;
    maintainers = [ maintainers.mmahut ];
  };
}