blob: a4afba24412b0cd5356c1ac6061e387df64aefcd (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
cargo,
rustPlatform,
rustc,
setuptools,
}:
buildPythonPackage rec {
pname = "tree-sitter-make";
version = "1.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "tree-sitter-grammars";
repo = "tree-sitter-make";
rev = "v${version}";
hash = "sha256-WiuhAp9JZKLd0wKCui9MV7AYFOW9dCbUp+kkVl1OEz0=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-75jtur5rmG4zpNXSE3OpPVR+/lf4SICsh+kgzIKfbd4=";
};
build-system = [
cargo
rustPlatform.cargoSetupHook
rustc
setuptools
];
# There are no tests
doCheck = false;
pythonImportsCheck = [
"tree_sitter_make"
];
meta = {
description = "Makefile grammar for tree-sitter";
homepage = "https://github.com/tree-sitter-grammars/tree-sitter-make";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ doronbehar ];
};
}
|