Skip to content

Commit 22b5fc9

Browse files
authored
ast-grep: 0.33.1 -> 0.34.3 (#378217)
2 parents a5318ff + 37b69d3 commit 22b5fc9

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

pkgs/by-name/as/ast-grep/package.nix

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,19 @@
1212

1313
rustPlatform.buildRustPackage rec {
1414
pname = "ast-grep";
15-
version = "0.33.1";
15+
version = "0.34.3";
1616

1717
src = fetchFromGitHub {
1818
owner = "ast-grep";
1919
repo = "ast-grep";
2020
tag = version;
21-
hash = "sha256-p7SJhkCoo4jBDyr+Z2+qxjUwWXWpVMuXd2/DDOM7Z/Q=";
21+
hash = "sha256-r82BDCncRUSmIBQFwsrKDwKEKmvGm/lKtz1rYC47Ems=";
2222
};
2323

24-
cargoHash = "sha256-aCBEL+Jx4Kk7PWsxIgpdRdI7AnUAUEtRU4+JMxQ4Swk=";
24+
cargoHash = "sha256-ro2RbXDf9TsU6WdI1tGzCix+xTJVxzN38vyVZonAuUg=";
2525

2626
nativeBuildInputs = [ installShellFiles ];
2727

28-
# error: linker `aarch64-linux-gnu-gcc` not found
29-
postPatch = ''
30-
rm .cargo/config.toml
31-
'';
32-
3328
cargoBuildFlags = [
3429
"--package ast-grep --bin ast-grep"
3530
] ++ lib.optionals enableLegacySg [ "--package ast-grep --bin sg" ];
@@ -52,21 +47,6 @@ rustPlatform.buildRustPackage rec {
5247
''
5348
);
5449

55-
checkFlags =
56-
[
57-
# disable flaky test
58-
"--skip=test::test_load_parser_mac"
59-
60-
# BUG: Broke by 0.12.1 update (https://github.com/NixOS/nixpkgs/pull/257385)
61-
# Please check if this is fixed in future updates of the package
62-
"--skip=verify::test_case::tests::test_unmatching_id"
63-
]
64-
++ lib.optionals (with stdenv.hostPlatform; (isDarwin && isx86_64) || (isLinux && isAarch64)) [
65-
# x86_64-darwin: source/benches/fixtures/json-mac.so\' (no such file), \'/private/tmp/nix-build-.../source/benches/fixtures/json-mac.so\' (mach-o file, but is an incompatible architecture (have \'arm64\', need \'x86_64h\' or \'x86_64\'))" })
66-
# aarch64-linux: /build/source/benches/fixtures/json-linux.so: cannot open shared object file: No such file or directory"
67-
"--skip=test::test_load_parser"
68-
"--skip=test::test_register_lang"
69-
];
7050
nativeInstallCheckInputs = [
7151
versionCheckHook
7252
];

0 commit comments

Comments
 (0)