forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helix: reenable haskell syntax highlighting support
Haskell syntax highlighting is disabled in `helix-editor` by default. This is because of an issue compiling tree-sitter-haskell on M1 macs, as its default compiler doesn't support c++14. As we're using a nix-derived toolchain, we shouldn't be subject to this problem. See [this comment](helix-editor/helix#1384 (comment)) for more info.
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
pkgs/applications/editors/helix/patches/reenable-haskell.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/helix-syntax/build.rs b/helix-syntax/build.rs | ||
index 28f85e7..bad1c6b 100644 | ||
--- a/helix-syntax/build.rs | ||
+++ b/helix-syntax/build.rs | ||
@@ -175,7 +175,7 @@ fn build_dir(dir: &str, language: &str) { | ||
fn main() { | ||
let ignore = vec![ | ||
"tree-sitter-typescript".to_string(), | ||
- "tree-sitter-haskell".to_string(), // aarch64 failures: https://github.com/tree-sitter/tree-sitter-haskell/issues/34 | ||
+ // "tree-sitter-haskell".to_string(), // aarch64 failures: https://github.com/tree-sitter/tree-sitter-haskell/issues/34 | ||
"tree-sitter-ocaml".to_string(), | ||
]; | ||
let dirs = collect_tree_sitter_dirs(&ignore).unwrap(); |