helix: build tree-sitter grammars from source#452275
Conversation
99f96db to
b3be124
Compare
|
73b1653 to
e7e760b
Compare
Runtime closure now256 elements (253.8 MiB in total) Runtime closure before7 elements (254.2 MiB in total) DetailsThe total size is similar but obviously the amount of derivations in the closure increased. |
|
PS: the question about if and how to set |
|
There is no rule against it. I mainly just want to ensure that settings them broken on pkgsStatic is ensured and that licenses are properly reported. |
|
As an alternative you could mark helix{-evil} as broken on static since they unconditionally use the runtime files |
|
Reviewed the Python code and overall looks good just a minor nit |
|
oops wrong button |
e7e760b to
0b13a72
Compare
I've considered this but at the end I've preferred marking as broken only grammars, also because in theory
For what concerns licenses I didn't find a way at the end. I may change the the python script to try fetching them but honestly it looks flaky. |
|
By the way the tree-sitter grammars under Otherwise we may use the generic At the moment the Which means that by default it already sets |
|
Alright I guess it's fine |
|
|
|
if there is no comment in a week, feel free to ping me and I'll merge |
Great! Can't wait to see this merged, it has been a long ride. Meanwhile I've also sent it to the "Nixpkgs Review Requests" Matrix channel. |
This allows overriding grammars with overlays
fff5493 to
95dd21f
Compare
|
|
I've rebased onto |
|
thank you for the huge work and patience :) |
|
Yay 🚀 |
|
|
Damn, how is it possible? With |
|
I've also just realized that this PR broke The issue is that We could solve the problem by adding a way to pass |
Closes #451633,
depends on #408414.(now merged)At the moment the compiled helix grammars are taken from a release on GitHub, this PR instead builds them from source.
In particular this:
It also affects a few generic things related to tree-sitter grammars:
tree-sitter.grammarsScopewhich is a real package set (usinglib.makeScope) making easier overriding/adding grammars by using overlaysThings done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.