Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2024-04-19 10:17:57 +02:00
{
lib,
python3Packages,
2024-04-19 10:17:57 +02:00
fetchFromGitHub,
versionCheckHook,
nix-update-script,
2024-04-19 10:17:57 +02:00
}:
python3Packages.buildPythonApplication rec {
2024-04-19 10:17:57 +02:00
pname = "nginx-language-server";
version = "0.9.0";
2024-04-19 10:17:57 +02:00
pyproject = true;
src = fetchFromGitHub {
owner = "pappasam";
repo = "nginx-language-server";
tag = "v${version}";
hash = "sha256-v9+Y8NBvN8HvTdNrK9D9YQuqDB3olIu5LfYapjlVlAM=";
2024-04-19 10:17:57 +02:00
};
build-system = with python3Packages; [
2024-04-19 10:17:57 +02:00
poetry-core
];
pythonRelaxDeps = [
"pydantic"
];
dependencies = with python3Packages; [
2024-04-19 10:17:57 +02:00
crossplane
lsprotocol
pydantic
pygls
typing-extensions
2024-04-19 10:17:57 +02:00
];
pythonImportsCheck = [ "nginx_language_server" ];
nativeCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "--version";
passthru = {
updateScript = nix-update-script { };
};
meta = {
2024-04-19 10:17:57 +02:00
description = "Language server for nginx.conf";
homepage = "https://github.com/pappasam/nginx-language-server";
changelog = "https://github.com/pappasam/nginx-language-server/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ GaetanLepage ];
2024-04-19 10:17:57 +02:00
mainProgram = "nginx-language-server";
};
}