File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 22 lib ,
33 buildGoModule ,
44 fetchFromGitHub ,
5+ versionCheckHook ,
56} :
67
78buildGoModule rec {
89 pname = "mactop" ;
9- version = "0.1.9 " ;
10+ version = "0.2.3 " ;
1011
1112 src = fetchFromGitHub {
1213 owner = "context-labs" ;
1314 repo = "mactop" ;
14- rev = "refs/tags/ v${ version } " ;
15- hash = "sha256-r9je+oeedQJsFBWWbOUcUls/EX0JZveUkmsXXtC8O0Q =" ;
15+ tag = "v${ version } " ;
16+ hash = "sha256-xWUCOmNwhxmutY7G+FmxT7mabexuBIcgFzX++zsdnN4 =" ;
1617 } ;
1718
18- vendorHash = "sha256-/KecVx4Gp776t8gFSO29E1q9v29nwrKIWZYCpj7IlSo =" ;
19+ vendorHash = "sha256-BFvd1jJzGYsI2E6BdFy+BwHOAy7VgblcByV/oRCKORs =" ;
1920
2021 ldflags = [
2122 "-s"
2223 "-w"
2324 ] ;
2425
26+ doInstallCheck = true ;
27+ nativeInstallCheckInputs = [ versionCheckHook ] ;
28+ versionCheckProgramArg = [ "--version" ] ;
29+
2530 meta = {
2631 description = "Terminal-based monitoring tool 'top' designed to display real-time metrics for Apple Silicon chips" ;
2732 homepage = "https://github.com/context-labs/mactop" ;
28- changelog = "https://github.com/context-labs/mactop/releases/tag/${ lib . removePrefix "refs/tags/" src . rev } " ;
33+ changelog = "https://github.com/context-labs/mactop/releases/tag/${ src . tag } " ;
2934 license = lib . licenses . mit ;
3035 maintainers = with lib . maintainers ; [ natsukium ] ;
3136 mainProgram = "mactop" ;
You can’t perform that action at this time.
0 commit comments