mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 10:34:16 +00:00
30 lines
757 B
Nix
30 lines
757 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gitlab-ci-pipelines-exporter";
|
|
version = "0.5.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mvisonneau";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-SbFaB808Xa7XvHR8ruu9wADVPUVwe5ogA+L+PSYb7kQ=";
|
|
};
|
|
|
|
subPackages = [ "cmd/${pname}" ];
|
|
|
|
ldflags = [
|
|
"-X main.version=v${version}"
|
|
];
|
|
|
|
vendorHash = "sha256-qZ9Ph8YZBBGS3dFlk3zTynU9WuRUHl2fVSPtd7hUB8E=";
|
|
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 = with maintainers; [ mmahut mvisonneau ];
|
|
};
|
|
}
|