commit
514bda6825
17 changed files with 110 additions and 56 deletions
|
@ -11,9 +11,9 @@ let
|
|||
# 1) change all these hashes
|
||||
# 2) nix-build -A tree-sitter.updater.update-all-grammars
|
||||
# 3) run the ./result script that is output by that (it updates ./grammars)
|
||||
version = "0.16.4";
|
||||
sha256 = "1m0zxz7h4w2zny7yhrlxwqvizcf043cizg7ca5dn3h9k16adcxil";
|
||||
cargoSha256 = "0hxm73diwiybljm6yy3vmwfdpg33b4rlg0h7afq4xgccq2vkwafs";
|
||||
version = "0.16.9";
|
||||
sha256 = "sha256-e5Ft+jEpExLgBBFmiswW0VFrsKume4gmUiOiF4ODhhQ=";
|
||||
cargoSha256 = "sha256-XbPLQEvf4JX517ddpx18eweiPrztS5E/X2pejkqmlCU=";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tree-sitter";
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
javascript = (builtins.fromJSON (builtins.readFile ./tree-sitter-javascript.json));
|
||||
jsdoc = (builtins.fromJSON (builtins.readFile ./tree-sitter-jsdoc.json));
|
||||
json = (builtins.fromJSON (builtins.readFile ./tree-sitter-json.json));
|
||||
php = (builtins.fromJSON (builtins.readFile ./tree-sitter-php.json));
|
||||
python = (builtins.fromJSON (builtins.readFile ./tree-sitter-python.json));
|
||||
ruby = (builtins.fromJSON (builtins.readFile ./tree-sitter-ruby.json));
|
||||
rust = (builtins.fromJSON (builtins.readFile ./tree-sitter-rust.json));
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-bash",
|
||||
"rev": "7b8adcf484e27b6c1a707ce28123e55dd4b7a844",
|
||||
"date": "2019-07-26T14:05:41-06:00",
|
||||
"sha256": "047p51ab4fqm55xqss6z74iyj1hlndql97dv9fifckczx3d5xn5g",
|
||||
"fetchSubmodules": false
|
||||
"rev": "e213464b5062017dc058cfb7effe2fc7a2eebb04",
|
||||
"date": "2020-03-02T14:55:46+01:00",
|
||||
"path": "/nix/store/napdz7i4k0gz469zsszdlvr5hmj8y7i9-tree-sitter-bash",
|
||||
"sha256": "0wz9rmpd36g88l2hhy1xl3i5d6a6di1jlw11qkvccgg16kb9p4h7",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-c",
|
||||
"rev": "6002fcd5e86bb1e8670157bb008b97dbaf656d95",
|
||||
"date": "2019-12-17T10:25:11-08:00",
|
||||
"sha256": "0bcsgwyv9nskkh26hl4hylb03py98d2m565bgvq7fn3f8gyx5w7v",
|
||||
"fetchSubmodules": false
|
||||
"rev": "99151b1e9293c9e025498fee7e6691e1a52e1d03",
|
||||
"date": "2020-05-14T11:39:30-07:00",
|
||||
"path": "/nix/store/b5xqnw967s9a58wcpyspbkgbph6jxarv-tree-sitter-c",
|
||||
"sha256": "07ax01r3npw13jlv20k15q2hdhqa0rwm2km6f5j50byqvmgfc6fm",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-cpp",
|
||||
"rev": "c7b767ac5fce26301321f91fb83fe9392c02d51d",
|
||||
"date": "2019-12-17T13:43:08-08:00",
|
||||
"sha256": "16i9iggr7ff18bif81viy9rvn1z55ad6yaq6dj0znjgaq8q6aclx",
|
||||
"fetchSubmodules": false
|
||||
"rev": "5e7476bd014445abdae879661e9caf299215478a",
|
||||
"date": "2020-05-14T11:46:56-07:00",
|
||||
"path": "/nix/store/xz540ah1xx06n3wwmk3ym72nj0bz82hh-tree-sitter-cpp",
|
||||
"sha256": "0v2l5269bhbpzcd929r3pn88gqcczx6spsq7p6ibsvsydbwj95wx",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-embedded-template",
|
||||
"rev": "3ca7c50fd3dd02df88cf120d8ab5b7b1f2efb270",
|
||||
"date": "2020-01-16T16:31:20-08:00",
|
||||
"sha256": "0vhmfn7jr5hdzksw808z99scqcyjr0i3qiybiq0yb644ysdmai05",
|
||||
"fetchSubmodules": false
|
||||
"rev": "8269c1360e5b1b9ba3e04e7896d9dd2f060de12f",
|
||||
"date": "2020-07-20T12:50:27-07:00",
|
||||
"path": "/nix/store/9ijnzv72vc1n56k6f1xp3kb7lc9hvlhh-tree-sitter-embedded-template",
|
||||
"sha256": "03symsaxp8m128cn5h14pnm30ihpc49syb4vybpdvgcvraa408qq",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-go",
|
||||
"rev": "689cc8fbdc0613d267434f221af85aff91a31f8c",
|
||||
"date": "2020-01-23T10:27:48-08:00",
|
||||
"sha256": "04gpzi125akwgww5smw5x4dqr6jv5sq1165qn86bz15hwcmnybfj",
|
||||
"fetchSubmodules": false
|
||||
"rev": "34181774b3e86b7801c939c79c7b80a82df91a2b",
|
||||
"date": "2020-08-13T12:21:50-07:00",
|
||||
"path": "/nix/store/3a5w7pz1m74y0lhbzq3bw3k2297lypqs-tree-sitter-go",
|
||||
"sha256": "0cfi7ghs0m3iqwd4jvsqgsj4gnfikn1j2q0wbkdfvz2j25l0qwq0",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-html",
|
||||
"rev": "2147dd298a2b2e9593bfcb51a14c289a0dc7eb87",
|
||||
"date": "2020-01-16T12:47:09-08:00",
|
||||
"sha256": "0acg9v940xq4sw7019z2izc9qs10wwqipyiki243dws6z0wmwhdq",
|
||||
"fetchSubmodules": false
|
||||
"rev": "7f442e1c6163d450c69c75c7a621badc3a0ea98f",
|
||||
"date": "2020-07-20T12:46:52-07:00",
|
||||
"path": "/nix/store/qklk97krsas1kjbh8dp6ii1gj9sqz8h9-tree-sitter-html",
|
||||
"sha256": "0z249nnxlal8g6zbrys6kb80vksgcw2j5nd737m6yna2h5bhl126",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-javascript",
|
||||
"rev": "6e3692292adf8750fece625fc06fc1503e00d75e",
|
||||
"date": "2020-01-27T13:47:50-08:00",
|
||||
"sha256": "1i8m7v0859109bf2dz0dhf4cnhqmwc4947z49g4rs07k8h8dfk99",
|
||||
"fetchSubmodules": false
|
||||
"rev": "3d5493495b62b4ff8e8c24aee7519dd904e25813",
|
||||
"date": "2020-09-21T17:18:41-07:00",
|
||||
"path": "/nix/store/bhjws8yif1ihhvhfsrdrp4inf03ks08r-tree-sitter-javascript",
|
||||
"sha256": "10fscmclcgl1a0314ppkfy0s7pmiiz5vjipbmks76608kic8nzpp",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-jsdoc",
|
||||
"rev": "7b2dc910126d553cddd3b2318f39604d205b3a21",
|
||||
"date": "2020-01-27T13:06:46-08:00",
|
||||
"sha256": "04ahmbwfx3238dbsvlpg8xgb1c4bazdd8yw7dk4vph9cp8rq0dj5",
|
||||
"fetchSubmodules": false
|
||||
"rev": "77e7785739ad3e90c3de8ed5a55418a5fd2b8225",
|
||||
"date": "2020-05-14T14:58:51-07:00",
|
||||
"path": "/nix/store/3wp3hff203z15fvbnizcqzic1pjxmpg4-tree-sitter-jsdoc",
|
||||
"sha256": "0i2ac7i0vs46668q56dpmd9c02vcyy3f8rh4i0dbvd3rvihifbgc",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-json",
|
||||
"rev": "7b6a33f300e3e88c3017e0a9d88c77b50ea6d149",
|
||||
"date": "2019-12-10T10:27:22-08:00",
|
||||
"sha256": "17yc7spn8v64ll684634zmjq3130yxvb5bfgjwg0agcaklpx71dp",
|
||||
"fetchSubmodules": false
|
||||
"rev": "d3976b27df8622ed17bef6dd5e358b398e73c676",
|
||||
"date": "2020-05-14T14:59:27-07:00",
|
||||
"path": "/nix/store/ds2wnlrh289rsnjx828h3jy1706g3x21-tree-sitter-json",
|
||||
"sha256": "1cbhsmzbjni0mynjcai6gshhg16nls82v9lcihxf350dz57f7sax",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-php",
|
||||
"rev": "b0c0367d4b7058921fdc4ba11e257441a64ab809",
|
||||
"date": "2020-07-29T16:56:25-07:00",
|
||||
"path": "/nix/store/la06yzcv5w1dpp31s4clllkfic8rs98a-tree-sitter-php",
|
||||
"sha256": "0a47rr1d5dg70kfvk257g7mhpcwslv6prxc7012spxcrfiwbx89l",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-python",
|
||||
"rev": "899ac8d5d6c883b2f05362c9953e14e78aac474c",
|
||||
"date": "2020-01-16T16:30:41-08:00",
|
||||
"sha256": "1mw23kfr33s6md701p0p2nrd04119204ir78i7j1s5cxiyvpjq33",
|
||||
"fetchSubmodules": false
|
||||
"rev": "30f538aa1f932a2864c102694761d3127a61dc68",
|
||||
"date": "2020-09-21T13:21:51-07:00",
|
||||
"path": "/nix/store/bxv85lm636xdsdqjf4n7sxjlhhh35qnv-tree-sitter-python",
|
||||
"sha256": "0hzzz90pn1qwyl5xk03cah62rbvp1c1yp1pw2m3hifqflxg4rs1g",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-ruby",
|
||||
"rev": "6540da2a79ceb7dc7afe50e9ac01eaad4378702d",
|
||||
"date": "2019-12-09T14:56:14-08:00",
|
||||
"sha256": "1i0ab1rm5hba0nnbmi4m37fbs368hk6wyby09pfmcmjwpi9zs0f9",
|
||||
"fetchSubmodules": false
|
||||
"rev": "a6fcb529e9097a2efbbb3f4857e42773e7f2474f",
|
||||
"date": "2020-05-26T16:18:48-07:00",
|
||||
"path": "/nix/store/yqd5b7ky21scahnhrik9psalbkwi3ab3-tree-sitter-ruby",
|
||||
"sha256": "0bxg5lfdazz5mlfnf0amcygvc8b2ydzl2blvbbhnziyx92r8di6q",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-rust",
|
||||
"rev": "1c37782a5528979a22991f8ed50dd3d3e423ac92",
|
||||
"date": "2020-01-20T16:08:51-08:00",
|
||||
"sha256": "04fzzn2rxpfg7pwymmarkdjabbp20yp10yzr4a5a1xcqx8hky9ix",
|
||||
"fetchSubmodules": false
|
||||
"rev": "40620bf4097cbc9cea79504d7e877865df43a19e",
|
||||
"date": "2020-05-15T10:53:35-07:00",
|
||||
"path": "/nix/store/r24bba6gxchb5zqzghna8yjvqnngbv4a-tree-sitter-rust",
|
||||
"sha256": "0hjp6nsskw341g97x41481b3zfwh8g853fs9six6j1mh92irmv6y",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"url": "https://github.com/tree-sitter/tree-sitter-typescript",
|
||||
"rev": "aa950f58ea8aa112bc72f3481b98fc2d3c07b3e0",
|
||||
"date": "2020-01-27T13:51:28-08:00",
|
||||
"sha256": "0y64lls7hw7yc70d9i6p4n1kchg11sbgl2m6yafy7w2ymksb5iw5",
|
||||
"fetchSubmodules": false
|
||||
"rev": "5a38a5bd04364d9f48b902fd1514e075b98b0edc",
|
||||
"date": "2020-09-17T10:19:01-07:00",
|
||||
"path": "/nix/store/b3q7vz9zhgjdbv3c2xap4k2ghpdjp2yf-tree-sitter-typescript",
|
||||
"sha256": "1mxwvzqbaaq11cz7zidiwr29fs0b6ycf3nadwdkgiz8c6x2xx398",
|
||||
"fetchSubmodules": false,
|
||||
"deepClone": false,
|
||||
"leaveDotGit": false
|
||||
}
|
||||
|
|
|
@ -18,7 +18,11 @@ stdenv.mkDerivation {
|
|||
configurePhase= ":";
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
$CC -I$src/src/ -shared -o parser -Os $src/src/parser.c
|
||||
scanner_cc="$src/src/scanner.cc"
|
||||
if [ ! -f "$scanner_cc" ]; then
|
||||
scanner_cc=""
|
||||
fi
|
||||
$CC -I$src/src/ -shared -o parser -Os $src/src/parser.c $scanner_cc -lstdc++
|
||||
runHook postBuild
|
||||
'';
|
||||
installPhase = ''
|
||||
|
|
Loading…
Reference in a new issue