d2947cfef0
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, prometheus-pushgateway }:
|
|
|
|
buildGoModule rec {
|
|
pname = "pushgateway";
|
|
version = "1.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prometheus";
|
|
repo = "pushgateway";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-fSp173/ubeXw44IHVnuyYAYnTCrHcsq7GRwPlH05kJY=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-abl2L8+QY2khLnsjXWWnzs9ewbFWctiJgHE29BRR2gU=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/prometheus/common/version.Version=${version}"
|
|
"-X github.com/prometheus/common/version.Revision=${version}"
|
|
"-X github.com/prometheus/common/version.Branch=${version}"
|
|
"-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs"
|
|
"-X github.com/prometheus/common/version.BuildDate=19700101-00:00:00"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = prometheus-pushgateway;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Allows ephemeral and batch jobs to expose metrics to Prometheus";
|
|
homepage = "https://github.com/prometheus/pushgateway";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ benley ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|