Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7 8buildGoModule (finalAttrs: { 9 pname = "grmon"; 10 version = "0.1"; 11 12 src = fetchFromGitHub { 13 owner = "bcicen"; 14 repo = "grmon"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-0J7f4DMADUut3Da0F1eTDsT1Hlk0rfInwzbcVcQNzg8="; 17 }; 18 19 vendorHash = "sha256-ySgWEGHlEJpfB/BZuRs1bELBspEaiaX/UnJai2V/hx0="; 20 21 env.CGO_ENABLED = "0"; 22 23 passthru = { 24 updateScript = nix-update-script { }; 25 }; 26 27 meta = with lib; { 28 description = "Command line monitoring for goroutines"; 29 longDescription = '' 30 To use it, instrument your Go code following the 31 [usage description of the project](https://github.com/bcicen/grmon?tab=readme-ov-file#usage). 32 ''; 33 homepage = "https://github.com/bcicen/grmon"; 34 license = licenses.mit; 35 mainProgram = "grmon"; 36 maintainers = with maintainers; [ katexochen ]; 37 }; 38})