mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
39 lines
906 B
Nix
39 lines
906 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "grmon";
|
|
version = "0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bcicen";
|
|
repo = "grmon";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-0J7f4DMADUut3Da0F1eTDsT1Hlk0rfInwzbcVcQNzg8=";
|
|
};
|
|
|
|
vendorHash = "sha256-ySgWEGHlEJpfB/BZuRs1bELBspEaiaX/UnJai2V/hx0=";
|
|
|
|
env.CGO_ENABLED = "0";
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Command line monitoring for goroutines";
|
|
longDescription = ''
|
|
To use it, instrument your Go code following the
|
|
[usage description of the project](https://github.com/bcicen/grmon?tab=readme-ov-file#usage).
|
|
'';
|
|
homepage = "https://github.com/bcicen/grmon";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "grmon";
|
|
maintainers = with lib.maintainers; [ katexochen ];
|
|
};
|
|
})
|