mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 03:23:17 +00:00
31 lines
807 B
Nix
31 lines
807 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gitlab-ci-pipelines-exporter";
|
|
version = "0.5.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mvisonneau";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-KbEmRMqv2IjJ/7sQHDfXtr92xNXmUCaD7fnJdq1FEtk=";
|
|
};
|
|
|
|
subPackages = [ "cmd/${pname}" ];
|
|
|
|
ldflags = [
|
|
"-X main.version=v${version}"
|
|
];
|
|
|
|
vendorHash = "sha256-DaNLahrmRTkI0QxEDLJH0juDbHXs2Y/t5JNx9ulcK84=";
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Prometheus / OpenMetrics exporter for GitLab CI pipelines insights";
|
|
mainProgram = "gitlab-ci-pipelines-exporter";
|
|
homepage = "https://github.com/mvisonneau/gitlab-ci-pipelines-exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ mmahut mvisonneau ];
|
|
};
|
|
}
|