From 1ddc344ffa23209e889d6e1c551074706fd01dae Mon Sep 17 00:00:00 2001 From: Mirza Arnaut Date: Tue, 21 Jul 2026 17:04:34 +0200 Subject: [PATCH] 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. --- pkgs/by-name/po/pop/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/po/pop/package.nix b/pkgs/by-name/po/pop/package.nix index 8e01b0cf022f..3f13356c8a81 100644 --- a/pkgs/by-name/po/pop/package.nix +++ b/pkgs/by-name/po/pop/package.nix @@ -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";