mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
26 lines
697 B
Nix
26 lines
697 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "systemd_exporter";
|
|
version = "0.5.0";
|
|
|
|
vendorSha256 = "sha256-XkwBhj2M1poirPkWzS71NbRTshc8dTKwaHoDfFxpykU=";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "povilasv";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-q6rnD8JCtB1zTkUfZt6f2Uyo91uFi3HYI7WFlZdzpBM=";
|
|
};
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) systemd; };
|
|
|
|
meta = with lib; {
|
|
description = "Exporter for systemd unit metrics";
|
|
homepage = "https://github.com/povilasv/systemd_exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ chkno ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|