File tree Expand file tree Collapse file tree 4 files changed +56
-30
lines changed
by-name/au/autotools-language-server
development/python-modules Expand file tree Collapse file tree 4 files changed +56
-30
lines changed Original file line number Diff line number Diff line change 11{
22 lib ,
3- python311 ,
3+ python3 ,
44 fetchFromGitHub ,
5- fetchpatch ,
65} :
76
8- let
9- python3 = python311 . override {
10- self = python3 ;
11- packageOverrides = _ : super : {
12- tree-sitter = super . tree-sitter_0_21 ;
13- lsp-tree-sitter = super . lsp-tree-sitter . overridePythonAttrs ( __ : {
14- pythonRelaxDeps = [ "tree-sitter" ] ;
15- } ) ;
16- } ;
17- } ;
18- in
197python3 . pkgs . buildPythonApplication rec {
208 pname = "autotools-language-server" ;
21- version = "0.0.19 " ;
9+ version = "0.0.22 " ;
2210 pyproject = true ;
2311
2412 src = fetchFromGitHub {
2513 owner = "Freed-Wu" ;
2614 repo = "autotools-language-server" ;
2715 tag = version ;
28- hash = "sha256-V0EOV1ZmeC+4svc2fqV6AIiL37dkrxUJAnjywMZcENw =" ;
16+ hash = "sha256-PvaEcdvUE8QpxKuW65RL8SgDl/RM/C3HTEK3v+YA73c =" ;
2917 } ;
30- patches = [
31- # Right before the release, upstream decided to replace the
32- # tree-sitter-languages dependency with tree-sitter-make, which is yanked
33- # from some reason. Hopefully upstream will fix this dependency a bit
34- # better in the next release. See also:
35- # https://github.com/Freed-Wu/autotools-language-server/commit/f149843becfcfd6b2bb4a98eb1f3984c01d5fd33#r142659163
36- ( fetchpatch {
37- url = "https://github.com/Freed-Wu/autotools-language-server/commit/f149843becfcfd6b2bb4a98eb1f3984c01d5fd33.patch" ;
38- hash = "sha256-TrzHbfR6GYAEqDIFiCqSX2+Qv4JeFJ5faiKJhNYojf0=" ;
39- revert = true ;
40- } )
41- ] ;
4218
4319 build-system = [
4420 python3 . pkgs . setuptools-generate
4521 python3 . pkgs . setuptools-scm
4622 ] ;
4723
4824 dependencies = with python3 . pkgs ; [
49- tree-sitter-languages
25+ tree-sitter-make
5026 lsp-tree-sitter
5127 ] ;
5228 nativeCheckInputs = [
Original file line number Diff line number Diff line change 1414
1515buildPythonPackage rec {
1616 pname = "lsp-tree-sitter" ;
17- version = "0.0.16 " ;
17+ version = "0.0.17 " ;
1818 pyproject = true ;
1919
2020 src = fetchFromGitHub {
2121 owner = "neomutt" ;
2222 repo = "lsp-tree-sitter" ;
2323 tag = version ;
24- hash = "sha256-nRzyVZFgb08M0I+xmhuX1LDwPsghlBLdZ2Ou8stKzk0 =" ;
24+ hash = "sha256-4DQzHdii2YS/Xg6AdT/kXC/8B88ZQaLgUf2oWoOthV8 =" ;
2525 } ;
2626
2727 build-system = [
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchFromGitHub ,
5+ cargo ,
6+ rustPlatform ,
7+ rustc ,
8+ setuptools ,
9+ } :
10+
11+ buildPythonPackage rec {
12+ pname = "tree-sitter-make" ;
13+ version = "1.1.1" ;
14+ pyproject = true ;
15+
16+ src = fetchFromGitHub {
17+ owner = "tree-sitter-grammars" ;
18+ repo = "tree-sitter-make" ;
19+ rev = "v${ version } " ;
20+ hash = "sha256-WiuhAp9JZKLd0wKCui9MV7AYFOW9dCbUp+kkVl1OEz0=" ;
21+ } ;
22+
23+ cargoDeps = rustPlatform . fetchCargoTarball {
24+ inherit src ;
25+ name = "${ pname } -${ version } " ;
26+ hash = "sha256-RI/wBnapWdr4kYshx9d9iN9nB30bR91uQ063yqNy4aA=" ;
27+ } ;
28+
29+ build-system = [
30+ cargo
31+ rustPlatform . cargoSetupHook
32+ rustc
33+ setuptools
34+ ] ;
35+
36+ # There are no tests
37+ doCheck = false ;
38+ pythonImportsCheck = [
39+ "tree_sitter_make"
40+ ] ;
41+
42+ meta = {
43+ description = "Makefile grammar for tree-sitter" ;
44+ homepage = "https://github.com/tree-sitter-grammars/tree-sitter-make" ;
45+ license = lib . licenses . mit ;
46+ maintainers = with lib . maintainers ; [ doronbehar ] ;
47+ } ;
48+ }
Original file line number Diff line number Diff line change @@ -16404,6 +16404,8 @@ self: super: with self; {
1640416404
1640516405 tree-sitter-json = callPackage ../development/python-modules/tree-sitter-json { };
1640616406
16407+ tree-sitter-make = callPackage ../development/python-modules/tree-sitter-make { };
16408+
1640716409 tree-sitter-languages = callPackage ../development/python-modules/tree-sitter-languages { };
1640816410
1640916411 treelib = callPackage ../development/python-modules/treelib { };
You can’t perform that action at this time.
0 commit comments