Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
959 B
Nix
Raw Permalink Normal View History

2024-06-02 23:45:27 +09:00
{
lib,
buildGoModule,
fetchFromGitHub,
2025-01-03 14:58:53 +09:00
versionCheckHook,
2024-06-02 23:45:27 +09:00
}:
buildGoModule rec {
pname = "mactop";
version = "0.2.3";
2024-06-02 23:45:27 +09:00
src = fetchFromGitHub {
owner = "context-labs";
repo = "mactop";
tag = "v${version}";
hash = "sha256-xWUCOmNwhxmutY7G+FmxT7mabexuBIcgFzX++zsdnN4=";
2024-06-02 23:45:27 +09:00
};
vendorHash = "sha256-BFvd1jJzGYsI2E6BdFy+BwHOAy7VgblcByV/oRCKORs=";
2024-06-02 23:45:27 +09:00
ldflags = [
"-s"
"-w"
];
2025-01-03 14:58:53 +09:00
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
2025-01-03 14:58:53 +09:00
2024-06-02 23:45:27 +09:00
meta = {
description = "Terminal-based monitoring tool 'top' designed to display real-time metrics for Apple Silicon chips";
homepage = "https://github.com/context-labs/mactop";
changelog = "https://github.com/context-labs/mactop/releases/tag/${src.tag}";
2024-06-02 23:45:27 +09:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
mainProgram = "mactop";
platforms = [ "aarch64-darwin" ];
};
}