diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-11-17 17:53:37 -0500 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2023-11-18 13:37:54 +1000 |
commit | d9c118dd42f8b76323ea9ccdf38976eee157b55d (patch) | |
tree | 38998a6efe1ed4792d1712238831b5660071325a /pkgs/applications/editors/helix | |
parent | adce9e85936e0d289361589f4388757b93061d6c (diff) |
helix: fix build with clang 16
Fix an implicit int error in one of the tree-sitter grammars.
Diffstat (limited to 'pkgs/applications/editors/helix')
-rw-r--r-- | pkgs/applications/editors/helix/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/applications/editors/helix/default.nix b/pkgs/applications/editors/helix/default.nix index 7d3b964fb15c7..323218f9437bf 100644 --- a/pkgs/applications/editors/helix/default.nix +++ b/pkgs/applications/editors/helix/default.nix @@ -12,6 +12,17 @@ rustPlatform.buildRustPackage rec { stripRoot = false; }; + patches = [ + # Fixes implicit int error in rescript grammar when building with clang 16. + # https://github.com/nkrkv/tree-sitter-rescript/pull/227. + (fetchpatch { + url = "https://github.com/nkrkv/tree-sitter-rescript/commit/ea93cbf7d9c52f925ed296b4714737e8088f3a19.patch"; + hash = "sha256-gpGPiy+yEs+dMJEnE5O3WC7iSB/6PLJYBYRcdTx//+o="; + extraPrefix = "runtime/grammars/sources/rescript/"; + stripLen = 1; + }) + ]; + cargoHash = "sha256-B8RO6BADDbPchowSfNVgviGvVgH23iF42DdhEBKBQzs="; nativeBuildInputs = [ git installShellFiles makeWrapper ]; |