Skip to content

Commit

Permalink
gohai: init at 2018-05-23
Browse files Browse the repository at this point in the history
This project does not have a default versioning scheme. go2nix
suggests using the date of the most recent change.
  • Loading branch information
tazjin committed May 24, 2018
1 parent 1c39035 commit ab50043
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions pkgs/tools/system/gohai/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ lib, stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:

buildGoPackage rec {
name = "gohai-${version}";
version = "2018-05-23";
rev = "60e13eaed98afa238ad6dfc98224c04fbb7b19b1";

goPackagePath = "github.com/DataDog/gohai";

src = fetchgit {
inherit rev;
url = "https://github.com/DataDog/gohai";
sha256 = "15hdw195f6ayrmj1nbyfpfswdai1r1z3qjw927mbma7rwql24dkr";
};

goDeps = ./deps.nix;

meta = with lib; {
description = "System information collector";
homepage = "https://github.com/DataDog/gohai";
license = licenses.mit;
maintainers = [ maintainers.tazjin ];
platforms = platforms.unix;
repositories.git = git://github.com/DataDog/gohai.git;

longDescription = ''
Gohai is a tool which collects an inventory of system
information. It is used by the Datadog agent to provide detailed
system metrics.
'';
};
}
30 changes: 30 additions & 0 deletions pkgs/tools/system/gohai/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,8 @@ with pkgs;

goa = callPackage ../development/tools/goa { };

gohai = callPackage ../tools/system/gohai { };

gorilla-bin = callPackage ../tools/security/gorilla-bin { };

gosu = callPackage ../tools/misc/gosu { };
Expand Down

0 comments on commit ab50043

Please sign in to comment.