8 pname = "smartctl_exporter";
11 src = fetchFromGitHub {
12 owner = "prometheus-community";
14 rev = "refs/tags/v${version}";
15 hash = "sha256-QQoWAsnE/7ifvgEfQJ6cbzmwOrE7oe2zalTbu/P7r18=";
18 vendorHash = "sha256-WUB2FgBl4Tybz7T0yvcSYIlG75NEhXpn1F0yuB9F21g=";
21 "-X github.com/prometheus/common/version.Version=${version}"
24 passthru.tests = { inherit (nixosTests.prometheus-exporters) smartctl; };
27 description = "Export smartctl statistics for Prometheus";
28 mainProgram = "smartctl_exporter";
29 homepage = "https://github.com/prometheus-community/smartctl_exporter";
30 license = licenses.lgpl3;
31 platforms = platforms.linux;
32 maintainers = with maintainers; [ hexa Frostman ];