nixpkgs/pkgs/servers/monitoring/prometheus/zfs-exporter.nix
2023-01-31 05:11:25 +00:00

31 lines
684 B
Nix

{ buildGoModule
, lib
, fetchFromGitHub
}:
buildGoModule rec {
pname = "zfs_exporter";
version = "2.2.7";
src = fetchFromGitHub {
owner = "pdf";
repo = pname;
rev = "v" + version;
hash = "sha256-bc9bmGrRGhm58JzrVLLJBUc1zaGXqz2fqx+ZphidFbc=";
};
vendorHash = "sha256-jQiw3HlqWcsjdadDdovCsDMBB3rnWtacfbtzDb5rc9c=";
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;
};
}