yo: add install check and update script

This commit is contained in:
chillcicada
2026-03-08 21:57:51 +08:00
parent 749d2ae0c8
commit d4f1ad9f8b
+7
View File
@@ -2,6 +2,8 @@
lib,
buildNpmPackage,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
@@ -19,6 +21,11 @@ buildNpmPackage (finalAttrs: {
dontNpmBuild = true;
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "CLI tool for running Yeoman generators";
homepage = "https://github.com/yeoman/yo";