diff --git a/srcpkgs/tree-sitter/template b/srcpkgs/tree-sitter/template index 27f0c59e103..aae7b848d6e 100644 --- a/srcpkgs/tree-sitter/template +++ b/srcpkgs/tree-sitter/template @@ -11,7 +11,11 @@ homepage="https://tree-sitter.github.io" distfiles="https://github.com/tree-sitter/tree-sitter/archive/v${version}.tar.gz" checksum=2a0445f8172bbf83db005aedb4e893d394e2b7b33251badd3c94c2c5cc37c403 make_check=no # tests require generating fixtures from remote repositories -nocross=yes # fails with current rust + +post_patch() { + # fixes an indexmap error when cross compiling + cargo update --package autocfg --precise 1.1.0 +} post_build() { # Build libtree-sitter, since do_build builds the tree-sitter CLI.