fx: add versionCheckHook; adopt (#458220)

This commit is contained in:
Felix Bargfeldt
2025-11-04 15:15:55 +00:00
committed by GitHub
+12 -1
View File
@@ -4,6 +4,8 @@
buildGoModule,
fetchFromGitHub,
installShellFiles,
versionCheckHook,
writableTmpDirAsHomeHook,
}:
buildGoModule (finalAttrs: {
@@ -30,12 +32,21 @@ buildGoModule (finalAttrs: {
--zsh <($out/bin/fx --comp zsh)
'';
nativeInstallCheckInputs = [
versionCheckHook
writableTmpDirAsHomeHook
];
doInstallCheck = true;
versionCheckProgramArg = "--version";
versionCheckKeepEnvironment = [ "HOME" ];
meta = {
changelog = "https://github.com/antonmedv/fx/releases/tag/${finalAttrs.src.tag}";
description = "Terminal JSON viewer";
homepage = "https://github.com/antonmedv/fx";
license = lib.licenses.mit;
mainProgram = "fx";
maintainers = [ ];
maintainers = with lib.maintainers; [ phanirithvij ];
};
})