From ed55513a4fc4f4f9d32007aa36ca75ab91e1be04 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Fri, 28 Aug 2020 21:00:19 +0200 Subject: [PATCH] tree-sitter: fix build --- pkgs/development/tools/parsing/tree-sitter/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/tools/parsing/tree-sitter/default.nix b/pkgs/development/tools/parsing/tree-sitter/default.nix index 51af3acdacdb..25faf4670503 100644 --- a/pkgs/development/tools/parsing/tree-sitter/default.nix +++ b/pkgs/development/tools/parsing/tree-sitter/default.nix @@ -55,6 +55,10 @@ in rustPlatform.buildRustPackage { # needed for the tests rm -rf test/fixtures/grammars ln -s ${grammars} test/fixtures/grammars + + # These functions do not appear in the source code + sed -i /_ts_query_context/d lib/binding_web/exports.json + sed -i /___assert_fail/d lib/binding_web/exports.json ''; # Compile web assembly with emscripten. The --debug flag prevents us from