mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 08:30:57 +00:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user