prometheus-smartctl-exporter: add ldflags to set version

This commit is contained in:
Sergey Lukjanov 2022-12-08 00:46:22 -08:00
parent b5bbf9c1ab
commit 7a11d055a3

View file

@ -16,6 +16,10 @@ buildGoModule rec {
vendorSha256 = "sha256-lQKuT5dzjDHFpRSmcXpKD1RJDlEv+0kcxENkv3mT4FU=";
ldflags = [
"-X github.com/prometheus/common/version.Version=${version}"
];
meta = with lib; {
description = "Export smartctl statistics for Prometheus";
homepage = "https://github.com/prometheus-community/smartctl_exporter";