nixpkgs/pkgs/servers/monitoring/prometheus/pushgateway.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.1 KiB
Nix
Raw Normal View History

2022-09-30 05:55:28 +00:00
{ lib, buildGoModule, fetchFromGitHub, testers, prometheus-pushgateway }:
2022-09-30 05:55:28 +00:00
buildGoModule rec {
pname = "pushgateway";
2023-10-03 06:20:16 +00:00
version = "1.6.2";
src = fetchFromGitHub {
owner = "prometheus";
repo = "pushgateway";
2022-09-30 05:55:28 +00:00
rev = "v${version}";
2023-10-03 06:20:16 +00:00
sha256 = "sha256-IwSzxpIBXIsOllAd0faP+uzpYZ8HcWJQBOgYZj9SZHM=";
};
2023-10-03 06:20:16 +00:00
vendorHash = "sha256-xpbGavt0gzOVZMHVdPtZ+rRVbovJ4xaqaAmYVipLzSs=";
2021-08-26 03:31:57 +00:00
ldflags = [
2022-09-30 05:55:28 +00:00
"-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"
2021-08-26 03:31:57 +00:00
];
2022-09-30 05:55:28 +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 ];
};
}