1 { lib, buildGoModule, fetchFromGitHub, nixosTests, testers, prometheus-pushgateway }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-SpHxBxBl0APP/y7MnR/p/+VjNAvFOZVlgGMlMGTbodI=";
14 vendorHash = "sha256-GydAY73Ui6z833x0DoWa6BpK35CYdYfyHw2+RwT3miw=";
19 "-X github.com/prometheus/common/version.Version=${version}"
20 "-X github.com/prometheus/common/version.Revision=${version}"
21 "-X github.com/prometheus/common/version.Branch=${version}"
22 "-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs"
23 "-X github.com/prometheus/common/version.BuildDate=19700101-00:00:00"
27 inherit (nixosTests.prometheus) pushgateway;
28 version = testers.testVersion {
29 package = prometheus-pushgateway;
34 description = "Allows ephemeral and batch jobs to expose metrics to Prometheus";
35 mainProgram = "pushgateway";
36 homepage = "https://github.com/prometheus/pushgateway";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ benley ];