prometheus-smartctl-exporter: add ldflags to set version
This commit is contained in:
parent
b5bbf9c1ab
commit
7a11d055a3
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ buildGoModule rec {
|
||||||
|
|
||||||
vendorSha256 = "sha256-lQKuT5dzjDHFpRSmcXpKD1RJDlEv+0kcxENkv3mT4FU=";
|
vendorSha256 = "sha256-lQKuT5dzjDHFpRSmcXpKD1RJDlEv+0kcxENkv3mT4FU=";
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-X github.com/prometheus/common/version.Version=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Export smartctl statistics for Prometheus";
|
description = "Export smartctl statistics for Prometheus";
|
||||||
homepage = "https://github.com/prometheus-community/smartctl_exporter";
|
homepage = "https://github.com/prometheus-community/smartctl_exporter";
|
||||||
|
|
Loading…
Reference in a new issue