blob: d79889fe2c33adfab6bd60dea6476ae57d73b985 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ lib
, python311
, fetchFromGitHub
, fetchpatch
}:
let
python3 = python311;
in
python3.pkgs.buildPythonApplication rec {
pname = "autotools-language-server";
version = "0.0.19";
pyproject = true;
src = fetchFromGitHub {
owner = "Freed-Wu";
repo = "autotools-language-server";
rev = "refs/tags/${version}";
hash = "sha256-V0EOV1ZmeC+4svc2fqV6AIiL37dkrxUJAnjywMZcENw=";
};
patches = [
# Right before the release, upstream decided to replace the
# tree-sitter-languages dependency with tree-sitter-make, which is yanked
# from some reason. Hopefully upstream will fix this dependency a bit
# better in the next release. See also:
# https://github.com/Freed-Wu/autotools-language-server/commit/f149843becfcfd6b2bb4a98eb1f3984c01d5fd33#r142659163
(fetchpatch {
url = "https://github.com/Freed-Wu/autotools-language-server/commit/f149843becfcfd6b2bb4a98eb1f3984c01d5fd33.patch";
hash = "sha256-TrzHbfR6GYAEqDIFiCqSX2+Qv4JeFJ5faiKJhNYojf0=";
revert = true;
})
];
build-system = [
python3.pkgs.setuptools-generate
python3.pkgs.setuptools-scm
];
dependencies = with python3.pkgs; [
tree-sitter-languages
lsp-tree-sitter
];
nativeCheckInputs = [
python3.pkgs.pytestCheckHook
];
meta = with lib; {
description = "Autotools language server, support configure.ac, Makefile.am, Makefile";
homepage = "https://github.com/Freed-Wu/autotools-language-server";
license = licenses.gpl3Only;
maintainers = with maintainers; [ doronbehar ];
mainProgram = "autotools-language-server";
};
}
|