Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
testers,
|
|
prometheus-pushgateway,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "pushgateway";
|
|
version = "1.11.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prometheus";
|
|
repo = "pushgateway";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-qcG7yTJN+HvzX1MB6ImF2umT/HLqohFeUwIc/86G/ec=";
|
|
};
|
|
|
|
vendorHash = "sha256-CUL9jj4Xu3G5+MIVCCY9IW4SxBe3xqaZatxA+0Our2M=";
|
|
|
|
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 = {
|
|
inherit (nixosTests.prometheus) pushgateway;
|
|
version = testers.testVersion {
|
|
package = prometheus-pushgateway;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Allows ephemeral and batch jobs to expose metrics to Prometheus";
|
|
mainProgram = "pushgateway";
|
|
homepage = "https://github.com/prometheus/pushgateway";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ benley ];
|
|
};
|
|
}
|