Merge pull request #172993 from aaronjheng/prometheus-nginx-exporter

prometheus-nginx-exporter: 0.9.0 -> 0.10.0
This commit is contained in:
Mario Rodas 2022-05-20 03:59:03 -05:00 committed by GitHub
commit 682a196eee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,23 +1,19 @@
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoPackage rec {
buildGoModule rec {
pname = "nginx_exporter";
version = "0.9.0";
goPackagePath = "github.com/nginxinc/nginx-prometheus-exporter";
ldflags = [
"-X main.version=${version}"
];
version = "0.10.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "nginxinc";
repo = "nginx-prometheus-exporter";
sha256 = "04y5vpj2kv2ygdzxy3crpnx4mhpkm1ns2995kxgvjlhnyck7a5rf";
rev = "v${version}";
sha256 = "sha256-k9sbMIn5N3EJ7ZlfmD9pRV6lfywnKyFvpxC/pGGgNTA=";
};
doCheck = true;
vendorSha256 = "sha256-SaaHbn97cb/d8symyrBYLzK+5ukVLfGrFiRIz+tKPhw=";
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
passthru.tests = { inherit (nixosTests.prometheus-exporters) nginx; };