Commit Graph

32 Commits

Author SHA1 Message Date
Sandro Jäckel
72ab5cbf69
tree-sitter: fix eval 2021-11-04 23:13:07 +01:00
Sandro Jäckel
8547db919a
treewide: switch `builtins.fromJSON(builtins.readFile ./file.json)` to lib.importJSON ./file.json 2021-11-03 14:43:52 +01:00
LavaDesu
46232128d2
tree-sitter: replace hyphens with underscores in .withPlugins
nvim-treesitter expects underscores instead of hyphens, causing some
grammars not to be recognised
2021-09-01 17:54:42 +07:00
Philipp Mildenberger
cab809f466 tree-sitter: 0.19.5 -> 0.20.0 2021-07-01 17:02:04 +02:00
Michael Adler
44c286d236 tree-sitter: 0.19.3 -> 0.19.5
new grammars:

* tree-sitter-toml
* tree-sitter-tsq
* tree-sitter-zig
2021-05-27 17:03:37 +02:00
Daniël de Kok
85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00
José Luis Lafuente
f29292db76 tree-sitter: Add withPlugins 2021-04-22 14:11:01 +02:00
Christian Kögler
f822651e70 tree-sitter: Add aarch64 support
tree-sitter compiles on aarch64
2021-04-03 16:11:34 +02:00
José Luis Lafuente
fee2e23c00 tree-sitter: 1.18.2 -> 0.19.3
Update the grammars and add `allGrammars` derivation.
`nix-build "<nixpkgs>" -A tree-sitter.allGrammars` will create a
derivation with symlinks to all the grammars
2021-03-16 01:38:58 +01:00
Sandro Jäckel
bee35c7b7c
tree-sitter: cleanup 2021-03-06 21:03:30 +01:00
José Luis Lafuente
c7cf17293b tree-sitter: 0.17.3 -> 0.18.2
Also updates the tree-sitter grammars
2021-03-03 21:07:51 +01:00
John Ericson
f52263ced0 treewide: Start to break up static overlay
We can use use `stdenv.hostPlatform.isStatic` instead, and move the
logic per package. The least opionated benefit of this is that it makes
it much easier to replace packages with modified ones, as there is no
longer any issue of overlay order.

CC @FRidh @matthewbauer
2021-01-03 19:18:16 +00:00
Profpatsch
00359f25e2 tree-sitter: test building of grammars 2020-12-29 13:54:29 +01:00
Profpatsch
b4ff78a45b tree-sitter/update: pull repo argument into the nix code 2020-12-29 13:02:39 +01:00
Profpatsch
d2988dac8e tree-sitter/update: factor repo list into nix
We want the ability to add different orga repos as well, and that is a
lot easier on the nix level.
2020-12-29 13:02:38 +01:00
Profpatsch
a32c5d90e7 tree-sitter: update grammars
The new update scripts gives us a bunch of new grammars!
2020-12-29 12:46:30 +01:00
Profpatsch
a629257ec5 tree-sitter: rename library.nix to grammar.nix 2020-12-29 12:46:30 +01:00
Profpatsch
c505e57173 tree-sitter: patch out web-ui by default, to drop emscripten
The tree-sitter build closure is pretty lean by default, but the
optional web-ui requires emscripten to compile the web interface
javascript/wasm code.

This is clearly not worth the increase in build closure size, and
since emscripten is broken more often than not, let’s patch it out by
default. If somebody /really/ needs the web-ui, there is a
`webUISupport` flag.
2020-12-24 17:11:04 +01:00
Profpatsch
cf81745404 tree-sitter: split arguments in library.nix & document 2020-12-19 13:36:03 +01:00
Profpatsch
5907bcadfa tree-sitter: exports.json was fixed in releases, remove sed
These symbols do not exist anymore in the new tree-sitter releases, so
we can remove the sed.
2020-12-19 13:36:02 +01:00
Nick Hu
a63c72212c
tree-sitter: macOS compatibility 2020-11-09 18:41:51 +00:00
Nick Hu
aea7f1b540
tree-sitter: make shared/static libraries configurable 2020-11-09 18:41:20 +00:00
Cole Mickens
562eaafd36
tree-sitter: 0.17.1 -> 0.17.3; run make install 2020-11-04 06:16:13 -08:00
Matthieu Coudron
b7b62de54d tree-sitter: 0.16.9 -> 0.17.1 2020-10-14 16:42:20 +02:00
Matthieu Coudron
57597f6050 tree-sitter: 0.16.4 -> 0.16.9 2020-09-22 14:54:58 +02:00
Gabriel Ebner
bc9760b842 emscripten: precompile libc, etc. 2020-08-29 13:02:55 +02:00
Gabriel Ebner
ed55513a4f tree-sitter: fix build 2020-08-28 21:00:19 +02:00
zowoq
473536e3b5 buildRustPackage: remove platform.all from packages 2020-08-16 12:48:18 +10:00
Matthieu Coudron
53ae5f76a2 tree-sitter.builtGrammars: build parser libraries
except for typescript that provokes an error.
These libraries can be used on neovim 0.5 for instance.
2020-03-06 08:01:35 +01:00
Benjamin Hipple
9131efe52d tree-sitter: 0.15.7 -> 0.16.4
Includes some bugfixes/cleanups to the scripts and packaging, a run of the
updater, a bump of the version, an upgrade to the newer cargo fetcher in #79975,
and gets the web assembly portion to compile successfully.

Fixes #75863
2020-02-15 00:33:54 -05:00
Benjamin Hipple
eb11feaa0b treewide: change fetchCargoTarball default to opt-out
Changes the default fetcher in the Rust Platform to be the newer
`fetchCargoTarball`, and changes every application using the current default to
instead opt out.

This commit does not change any hashes or cause any rebuilds. Once integrated,
we will start deleting the opt-outs and recomputing hashes.

See #79975 for details.
2020-02-13 22:41:37 -08:00
Profpatsch
ffbad0f656 tree-sitter: init at 0.15.7 2019-08-24 15:13:47 +02:00