lol
1{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2
3buildGoModule rec {
4 pname = "systemd_exporter";
5 version = "0.5.0";
6
7 vendorSha256 = "sha256-XkwBhj2M1poirPkWzS71NbRTshc8dTKwaHoDfFxpykU=";
8
9 src = fetchFromGitHub {
10 owner = "povilasv";
11 repo = pname;
12 rev = "v${version}";
13 sha256 = "sha256-q6rnD8JCtB1zTkUfZt6f2Uyo91uFi3HYI7WFlZdzpBM=";
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}