pop: add versionCheckHook and explicit updateScript

This should make runtime failures easier to notice during building.
Even tho there isn't a `passthru.updateScript` defined, the package is
being automatically updated. I added an explicit `nix-update-script`
reference just to make it explicit that the package is being updated
automatically.
This commit is contained in:
Mirza Arnaut
2026-07-21 17:04:34 +02:00
parent 6f31c25290
commit 1ddc344ffa

View File

@@ -4,6 +4,8 @@
buildGoModule,
installShellFiles,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildGoModule (finalAttrs: {
@@ -40,6 +42,13 @@ buildGoModule (finalAttrs: {
--zsh <($out/bin/pop completion zsh)
'';
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Send emails from your terminal";
homepage = "https://github.com/charmbracelet/pop";