Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
35 lines
698 B
Nix
35 lines
698 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
libvirt,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "prometheus-libvirt-exporter";
|
|
version = "2.3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Tinkoff";
|
|
repo = "libvirt-exporter";
|
|
tag = version;
|
|
hash = "sha256-loh7fgeF1/OuTt2MQSkl/7VnX25idoF57+HtzV9L/ns=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
ldflags = [ "-X=main.Version=${version}" ];
|
|
|
|
buildInputs = [ libvirt ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
meta = with lib; {
|
|
description = "Prometheus metrics exporter for libvirt";
|
|
homepage = "https://github.com/Tinkoff/libvirt-exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ farcaller ];
|
|
};
|
|
}
|