Merge pull request #172993 from aaronjheng/prometheus-nginx-exporter
prometheus-nginx-exporter: 0.9.0 -> 0.10.0
This commit is contained in:
commit
682a196eee
@ -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; };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user