From a93c5322d34603901cf0ab5be9014ea39b2e2cf4 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 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.