Files
nixpkgs/pkgs/by-name/gr/grmon/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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 ];
};
})