mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
305a2b04f2
Diff: https://github.com/context-labs/mactop/compare/refs/tags/v0.1.8...v0.1.9 Changelog: https://github.com/context-labs/mactop/releases/tag/v0.1.9
35 lines
862 B
Nix
35 lines
862 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "mactop";
|
|
version = "0.1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "context-labs";
|
|
repo = "mactop";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-r9je+oeedQJsFBWWbOUcUls/EX0JZveUkmsXXtC8O0Q=";
|
|
};
|
|
|
|
vendorHash = "sha256-/KecVx4Gp776t8gFSO29E1q9v29nwrKIWZYCpj7IlSo=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
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/${lib.removePrefix "refs/tags/" src.rev}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ natsukium ];
|
|
mainProgram = "mactop";
|
|
platforms = [ "aarch64-darwin" ];
|
|
};
|
|
}
|