mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 03:53:56 +00:00
31 lines
684 B
Nix
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;
|
|
};
|
|
}
|