From 471bff0b46a6d43a1a7d0f87252cd42802f2076b Mon Sep 17 00:00:00 2001 From: natsukium Date: Fri, 3 Jan 2025 14:58:53 +0900 Subject: [PATCH] mactop: enable version check --- pkgs/by-name/ma/mactop/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/ma/mactop/package.nix b/pkgs/by-name/ma/mactop/package.nix index 54025548a0d4c..8cdc9432040eb 100644 --- a/pkgs/by-name/ma/mactop/package.nix +++ b/pkgs/by-name/ma/mactop/package.nix @@ -2,6 +2,7 @@ lib, buildGoModule, fetchFromGitHub, + versionCheckHook, }: buildGoModule rec { @@ -22,6 +23,10 @@ buildGoModule rec { "-w" ]; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = [ "--version" ]; + meta = { description = "Terminal-based monitoring tool 'top' designed to display real-time metrics for Apple Silicon chips"; homepage = "https://github.com/context-labs/mactop";