@@ -0,0 +1,25 @@
1+{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2+
3+buildGoModule rec {
4+ pname = "systemd_exporter";
5+ version = "0.4.0";
6+
7+ vendorSha256 = "sha256-bYoB0r+d0j3esi/kK2a7/Duup9cf4M3WJjiBNs2+bj8=";
8+
9+ src = fetchFromGitHub {
10+ owner = "povilasv";
11+ repo = pname;
12+ rev = "v${version}";
13+ sha256 = "sha256-JDfRHczFnTP9sxA7polUE9qzJhSPIiAU58GBNDYkX4c=";
14+ };
15+
16+ passthru.tests = { inherit (nixosTests.prometheus-exporters) systemd; };
17+
18+ meta = with lib; {
19+ description = "Exporter for systemd unit metrics";
20+ homepage = "https://github.com/povilasv/systemd_exporter";
21+ license = licenses.asl20;
22+ maintainers = with maintainers; [ chkno ];
23+ platforms = platforms.unix;
24+ };
25+}