ast-grep: add updateScript

This commit is contained in:
ZHAO Jin-Xiang
2025-01-18 02:29:16 +08:00
parent 3ca2cedac2
commit 33747f4edd
+3
View File
@@ -6,6 +6,7 @@
installShellFiles,
buildPackages,
versionCheckHook,
nix-update-script,
enableLegacySg ? false,
}:
@@ -72,6 +73,8 @@ rustPlatform.buildRustPackage rec {
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = with lib; {
mainProgram = "ast-grep";
description = "Fast and polyglot tool for code searching, linting, rewriting at large scale";