From 33747f4edd7143085c26abdc55fc5d4d9bc28f4b Mon Sep 17 00:00:00 2001 From: ZHAO Jin-Xiang Date: Sat, 18 Jan 2025 02:29:16 +0800 Subject: [PATCH 1/2] ast-grep: add updateScript --- pkgs/by-name/as/ast-grep/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/as/ast-grep/package.nix b/pkgs/by-name/as/ast-grep/package.nix index 4dc3ff39490c..93ffe79dc217 100644 --- a/pkgs/by-name/as/ast-grep/package.nix +++ b/pkgs/by-name/as/ast-grep/package.nix @@ -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"; From 9c414926c84ecbcb3406e30f94ec821ac59b5328 Mon Sep 17 00:00:00 2001 From: ZHAO Jin-Xiang Date: Fri, 17 Jan 2025 18:30:12 +0000 Subject: [PATCH 2/2] ast-grep: 0.33.0 -> 0.33.1 --- pkgs/by-name/as/ast-grep/package.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/as/ast-grep/package.nix b/pkgs/by-name/as/ast-grep/package.nix index 93ffe79dc217..8cd89f3f13cb 100644 --- a/pkgs/by-name/as/ast-grep/package.nix +++ b/pkgs/by-name/as/ast-grep/package.nix @@ -12,16 +12,16 @@ rustPlatform.buildRustPackage rec { pname = "ast-grep"; - version = "0.33.0"; + version = "0.33.1"; src = fetchFromGitHub { owner = "ast-grep"; repo = "ast-grep"; - rev = version; - hash = "sha256-oqG76KzyN5TnE27yxrHeEYjLwrnDMvwbOzOnN6TWvxc="; + tag = version; + hash = "sha256-p7SJhkCoo4jBDyr+Z2+qxjUwWXWpVMuXd2/DDOM7Z/Q="; }; - cargoHash = "sha256-O3FKn90QVDk1TXJtjmaiDuXr+pwIjsAmadi+aypXeLA="; + cargoHash = "sha256-aCBEL+Jx4Kk7PWsxIgpdRdI7AnUAUEtRU4+JMxQ4Swk="; nativeBuildInputs = [ installShellFiles ]; @@ -75,13 +75,13 @@ rustPlatform.buildRustPackage rec { passthru.updateScript = nix-update-script { }; - meta = with lib; { + meta = { mainProgram = "ast-grep"; description = "Fast and polyglot tool for code searching, linting, rewriting at large scale"; homepage = "https://ast-grep.github.io/"; changelog = "https://github.com/ast-grep/ast-grep/blob/${src.rev}/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ xiaoxiangmoe montchr lord-valen