From 5b751fe9c4c3ffc2bd81605025a52cacfbef8a15 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Wed, 2 Mar 2022 14:02:04 +0100 Subject: [PATCH] tree-sitter: fix cross --- srcpkgs/tree-sitter/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/tree-sitter/template b/srcpkgs/tree-sitter/template index 27f0c59e1036..aae7b848d6ec 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.