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