nixpkgs/pkgs/servers/monitoring/prometheus/zfs-exporter.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
684 B
Nix
Raw Normal View History

2022-08-08 13:53:49 +00:00
{ buildGoModule
, lib
, fetchFromGitHub
}:
buildGoModule rec {
pname = "zfs_exporter";
version = "2.2.8";
2022-08-08 13:53:49 +00:00
src = fetchFromGitHub {
owner = "pdf";
repo = pname;
rev = "v" + version;
hash = "sha256-NTlYMznUfDfLftvuR5YWOW4Zu0rWfLkKPHPTrD/62+Q=";
2022-08-08 13:53:49 +00:00
};
vendorHash = "sha256-ZJRxH9RhNSnVmcsonaakbvvjQ+3ovnyMny1Pe/vyQxE=";
2022-08-08 13:53:49 +00:00
postInstall = ''
install -Dm444 -t $out/share/doc/${pname} *.md
'';
meta = with lib; {
description = "ZFS Exporter for the Prometheus monitoring system";
homepage = "https://github.com/pdf/zfs_exporter";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.unix;
};
}