tree-sitter-grammars.tree-sitter-norg: mark wasi broken
norg ships a C++ external scanner, which the WASM grammar build does not support (only C scanners are linked). Mark it broken on WASI so the wasi32 cross set skips it cleanly at eval instead of failing mid-build.
This commit is contained in:
@@ -6,13 +6,14 @@
|
||||
fetchpatch,
|
||||
fetchFromCodeberg,
|
||||
nix-update-script,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
let
|
||||
/**
|
||||
Set of grammar sources. See ./grammar-sources.nix to define a new grammar.
|
||||
*/
|
||||
grammar-sources = import ./grammar-sources.nix { inherit lib fetchpatch; };
|
||||
grammar-sources = import ./grammar-sources.nix { inherit lib fetchpatch stdenv; };
|
||||
|
||||
/**
|
||||
Parse a flakeref style string to { type, owner, repo, ref }
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
{ fetchpatch, lib }:
|
||||
{
|
||||
fetchpatch,
|
||||
lib,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
{
|
||||
|
||||
@@ -1758,6 +1762,8 @@
|
||||
url = "github:nvim-neorg/tree-sitter-norg";
|
||||
hash = "sha256-z3h5qMuNKnpQgV62xZ02F5vWEq4VEnm5lxwEnIFu+Rw=";
|
||||
meta = {
|
||||
# Uses a C++ external scanner, unsupported by the WASM grammar build.
|
||||
broken = stdenv.hostPlatform.isWasi;
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -61,6 +61,7 @@ let
|
||||
fetchFromSourcehut
|
||||
fetchFromCodeberg
|
||||
fetchpatch
|
||||
stdenv
|
||||
;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user