blob: df21ef09f9f1cbe546fd3c5946d9ce41b43af9eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib
, fetchFromGitHub
, buildGoModule
, nixosTests
}:
buildGoModule rec {
pname = "smartctl_exporter";
version = "0.9.1";
src = fetchFromGitHub {
owner = "prometheus-community";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-fc1NZ5QwzR/jJkeaDm5PMT4wBFFlqZOXKTJMBJWKJJ8=";
};
vendorSha256 = "sha256-lQKuT5dzjDHFpRSmcXpKD1RJDlEv+0kcxENkv3mT4FU=";
ldflags = [
"-X github.com/prometheus/common/version.Version=${version}"
];
passthru.tests = { inherit (nixosTests.prometheus-exporters) smartctl; };
meta = with lib; {
description = "Export smartctl statistics for Prometheus";
homepage = "https://github.com/prometheus-community/smartctl_exporter";
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ hexa Frostman ];
};
}
|