prometheus-consul-exporter: add changelog to meta

This commit is contained in:
Fabian Affolter 2022-12-04 14:08:55 +01:00 committed by GitHub
parent f530086824
commit a45c3e9b51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,7 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "consul_exporter";
@ -7,17 +10,21 @@ buildGoModule rec {
src = fetchFromGitHub {
owner = "prometheus";
repo = "consul_exporter";
rev = "v${version}";
sha256 = "sha256-Y3H4lFRoOLs8BBWUqfQOl9ny7HoRGqKIiq/ONcnzMW0=";
rev = "refs/tags/v${version}";
hash = "sha256-Y3H4lFRoOLs8BBWUqfQOl9ny7HoRGqKIiq/ONcnzMW0=";
};
vendorSha256 = "sha256-V3IWhVm47Uwgk3Mcu4JcYYGAdCrHDhkXYXCTXQr1BDE=";
vendorHash = "sha256-V3IWhVm47Uwgk3Mcu4JcYYGAdCrHDhkXYXCTXQr1BDE=";
ldflags = [ "-s" "-w" ];
ldflags = [
"-s"
"-w"
];
meta = with lib; {
description = "Prometheus exporter for Consul metrics";
homepage = "https://github.com/prometheus/consul_exporter";
changelog = "https://github.com/prometheus/consul_exporter/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ hectorj ];
platforms = platforms.unix;