From 6705b63c77628b9841b061d8f264ae66c8a7e786 Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Sun, 29 Mar 2026 15:23:59 +0300 Subject: [PATCH] macchina: add nix-update-script --- pkgs/by-name/ma/macchina/package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ma/macchina/package.nix b/pkgs/by-name/ma/macchina/package.nix index 3bd862185f5f..0e3b98afaf39 100644 --- a/pkgs/by-name/ma/macchina/package.nix +++ b/pkgs/by-name/ma/macchina/package.nix @@ -3,6 +3,8 @@ rustPlatform, fetchFromGitHub, installShellFiles, + versionCheckHook, + nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -26,10 +28,15 @@ rustPlatform.buildRustPackage (finalAttrs: { installManPage doc/macchina.{1,7} ''; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + meta = { description = "Fast, minimal and customizable system information fetcher"; homepage = "https://github.com/Macchina-CLI/macchina"; - changelog = "https://github.com/Macchina-CLI/macchina/releases/tag/v${finalAttrs.version}"; + changelog = "https://github.com/Macchina-CLI/macchina/blob/v${finalAttrs.version}/CHANGELOG.md"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ _414owen