mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
851 B
Nix
33 lines
851 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gohai";
|
|
version = "unstable-2022-04-12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DataDog";
|
|
repo = "gohai";
|
|
rev = "c614f513e87f04d3d19b2d4ae853cc5703f3a9bc";
|
|
sha256 = "sha256-vdzGGTg9SHYS0OQUn3VvrQGpKxzqxBRXDKOm0c7FvYY=";
|
|
};
|
|
|
|
vendorHash = "sha256-aN1fwGbBm45e6qdRu+4wnv2ZI7SOsIPONB4vF9o2vlI=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "System information collector";
|
|
homepage = "https://github.com/DataDog/gohai";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ tazjin ];
|
|
longDescription = ''
|
|
Gohai is a tool which collects an inventory of system
|
|
information. It is used by the Datadog agent to provide detailed
|
|
system metrics.
|
|
'';
|
|
mainProgram = "gohai";
|
|
};
|
|
}
|