ast-grep: cleanup & fix on aarch64-linux (#385922)

authored by Nick Cao and committed by GitHub 199169a2 952501ed

+9 -4
+9 -4
pkgs/by-name/as/ast-grep/package.nix
··· 10 enableLegacySg ? false, 11 }: 12 13 - rustPlatform.buildRustPackage rec { 14 pname = "ast-grep"; 15 version = "0.35.0"; 16 17 src = fetchFromGitHub { 18 owner = "ast-grep"; 19 repo = "ast-grep"; 20 - tag = version; 21 hash = "sha256-uiQYqVcSSQT32Vu8iE5ATIHFGDiyuxaQvg8hkBtB4DU="; 22 }; 23 24 useFetchCargoVendor = true; 25 cargoHash = "sha256-B/egtLMBrlLobB1m04L1NlNmZ6+DdQIV9Ae0LVPmO2Y="; ··· 60 mainProgram = "ast-grep"; 61 description = "Fast and polyglot tool for code searching, linting, rewriting at large scale"; 62 homepage = "https://ast-grep.github.io/"; 63 - changelog = "https://github.com/ast-grep/ast-grep/blob/${src.rev}/CHANGELOG.md"; 64 license = lib.licenses.mit; 65 maintainers = with lib.maintainers; [ 66 xiaoxiangmoe ··· 69 cafkafk 70 ]; 71 }; 72 - }
··· 10 enableLegacySg ? false, 11 }: 12 13 + rustPlatform.buildRustPackage (finalAttrs: { 14 pname = "ast-grep"; 15 version = "0.35.0"; 16 17 src = fetchFromGitHub { 18 owner = "ast-grep"; 19 repo = "ast-grep"; 20 + tag = finalAttrs.version; 21 hash = "sha256-uiQYqVcSSQT32Vu8iE5ATIHFGDiyuxaQvg8hkBtB4DU="; 22 }; 23 + 24 + # error: linker `aarch64-linux-gnu-gcc` not found 25 + postPatch = '' 26 + rm .cargo/config.toml 27 + ''; 28 29 useFetchCargoVendor = true; 30 cargoHash = "sha256-B/egtLMBrlLobB1m04L1NlNmZ6+DdQIV9Ae0LVPmO2Y="; ··· 65 mainProgram = "ast-grep"; 66 description = "Fast and polyglot tool for code searching, linting, rewriting at large scale"; 67 homepage = "https://ast-grep.github.io/"; 68 + changelog = "https://github.com/ast-grep/ast-grep/blob/${finalAttrs.version}/CHANGELOG.md"; 69 license = lib.licenses.mit; 70 maintainers = with lib.maintainers; [ 71 xiaoxiangmoe ··· 74 cafkafk 75 ]; 76 }; 77 + })