2022-05-18 14:49:53 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gohai";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "unstable-2022-04-12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DataDog";
|
|
|
|
repo = "gohai";
|
|
|
|
rev = "c614f513e87f04d3d19b2d4ae853cc5703f3a9bc";
|
|
|
|
sha256 = "sha256-vdzGGTg9SHYS0OQUn3VvrQGpKxzqxBRXDKOm0c7FvYY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-aN1fwGbBm45e6qdRu+4wnv2ZI7SOsIPONB4vF9o2vlI=";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-05-18 14:49:53 +00:00
|
|
|
description = "System information collector";
|
|
|
|
homepage = "https://github.com/DataDog/gohai";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tazjin ];
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Gohai is a tool which collects an inventory of system
|
|
|
|
information. It is used by the Datadog agent to provide detailed
|
|
|
|
system metrics.
|
|
|
|
'';
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "gohai";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|