Skip to content

Commit

Permalink
✨ Add some language servers
Browse files Browse the repository at this point in the history
termux-language-server
bitbake-language-server
pkgbuild-language-server
portage-language-server
requirements-language-server
sublime-syntax-language-server
termux-language-server
  • Loading branch information
Freed-Wu committed Jun 21, 2023
1 parent f8984fb commit ea7b007
Show file tree
Hide file tree
Showing 15 changed files with 275 additions and 6 deletions.
7 changes: 7 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ let
repl-python-codestats = callPackage ./pkgs/development/python-modules/repl-python-codestats { };
translate-shell = callPackage ./pkgs/development/python-modules/translate-shell { };
mulimgviewer = callPackage ./pkgs/development/python-modules/mulimgviewer { };
autoconf-language-server = callPackage ./pkgs/development/python-modules/autoconf-language-server { };
bitbake-language-server = callPackage ./pkgs/development/python-modules/bitbake-language-server { };
pkgbuild-language-server = callPackage ./pkgs/development/python-modules/pkgbuild-language-server { };
portage-language-server = callPackage ./pkgs/development/python-modules/portage-language-server { };
requirements-language-server = callPackage ./pkgs/development/python-modules/requirements-language-server { };
sublime-syntax-language-server = callPackage ./pkgs/development/python-modules/sublime-syntax-language-server { };
termux-language-server = callPackage ./pkgs/development/python-modules/termux-language-server { };
};
in
myPkgs
28 changes: 28 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,34 @@ fetch.pypi = "repl-python-codestats"
src.pypi = "translate-shell"
fetch.pypi = "translate-shell"

[autoconf-language-server]
src.pypi = "autoconf-language-server"
fetch.pypi = "autoconf-language-server"

[bitbake-language-server]
src.pypi = "bitbake-language-server"
fetch.pypi = "bitbake-language-server"

[pkgbuild-language-server]
src.pypi = "pkgbuild-language-server"
fetch.pypi = "pkgbuild-language-server"

[portage-language-server]
src.pypi = "portage-language-server"
fetch.pypi = "portage-language-server"

[requirements-language-server]
src.pypi = "requirements-language-server"
fetch.pypi = "requirements-language-server"

[sublime-syntax-language-server]
src.pypi = "sublime-syntax-language-server"
fetch.pypi = "sublime-syntax-language-server"

[termux-language-server]
src.pypi = "termux-language-server"
fetch.pypi = "termux-language-server"

[mulimgviewer]
src.pypi = "mulimgviewer"
fetch.pypi = "mulimgviewer"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ mySources
, python3
, lib
# , setuptools-generate
}:

with python3.pkgs;

buildPythonPackage rec {
inherit (mySources.autoconf-language-server) pname version src;
format = "pyproject";
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
pygls
platformdirs
autoconf
];
# nativeCheckInputs = [
# setuptools-generate
# ];
pythonImportsCheck = [
"autoconf_language_server"
];

meta = with lib; {
homepage = "https://autoconf-language-server.readthedocs.io";
description = "autoconf language server";
license = licenses.gpl3;
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ mySources
, python3
, lib
# , setuptools-generate
}:

with python3.pkgs;

buildPythonPackage rec {
inherit (mySources.bitbake-language-server) pname version src;
format = "pyproject";
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
pygls
platformdirs
beautifulsoup4
];
# nativeCheckInputs = [
# setuptools-generate
# ];
pythonImportsCheck = [
"bitbake_language_server"
];

meta = with lib; {
homepage = "https://bitbake-language-server.readthedocs.io";
description = "bitbake language server";
license = licenses.gpl3;
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/help2man/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ buildPythonPackage rec {
homepage = "https://help2man.readthedocs.io";
description = "Convert --help and --version to man page";
license = licenses.gpl3;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/mulimgviewer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ buildPythonPackage rec {
homepage = "https://mulimgviewer.readthedocs.io";
description = "MulimgViewer is a multi-image viewer that can open multiple images in one interface, which is convenient for image comparison and image stitching";
license = licenses.gpl3;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ mySources
, python3
, lib
, pacman
# , setuptools-generate
}:

with python3.pkgs;

buildPythonPackage rec {
inherit (mySources.pkgbuild-language-server) pname version src;
format = "pyproject";
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
pygls
platformdirs
pypandoc
markdown-it-py
pacman
# pyalpm
];
# nativeCheckInputs = [
# setuptools-generate
# ];
pythonImportsCheck = [
"pkgbuild_language_server"
];

meta = with lib; {
homepage = "https://pkgbuild-language-server.readthedocs.io";
description = "PKGBUILD language server";
license = licenses.gpl3;
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ mySources
, python3
, lib
# , setuptools-generate
}:

with python3.pkgs;

buildPythonPackage rec {
inherit (mySources.portage-language-server) pname version src;
format = "pyproject";
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
pygls
platformdirs
pypandoc
beautifulsoup4
# portage
];
# nativeCheckInputs = [
# setuptools-generate
# ];
pythonImportsCheck = [
"portage_language_server"
];

meta = with lib; {
homepage = "https://portage-language-server.readthedocs.io";
description = "portage language server";
license = licenses.gpl3;
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildPythonPackage rec {
homepage = "https://repl-python-codestats.readthedocs.io";
description = "A codestats plugin for python REPLs";
license = licenses.gpl3;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildPythonPackage rec {
homepage = "https://repl-python-wakatime.readthedocs.io";
description = "Python REPL plugin for automatic time tracking and metrics generated from your programming activity";
license = licenses.gpl3;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ mySources
, python3
, lib
# , setuptools-generate
}:

with python3.pkgs;

buildPythonPackage rec {
inherit (mySources.requirements-language-server) pname version src;
format = "pyproject";
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
pygls
platformdirs
jinja2
# pip-cache
pip-tools
];
# nativeCheckInputs = [
# setuptools-generate
# ];
pythonImportsCheck = [
"requirements_language_server"
];

meta = with lib; {
# pip-cache
broken = true;
homepage = "https://requirements-language-server.readthedocs.io";
description = "requirements.txt language server";
license = licenses.gpl3;
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ buildPythonPackage rec {
homepage = "https://setuptools-generate.readthedocs.io";
description = "Generate shell completions and man page when building a python package";
license = licenses.gpl3;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ mySources
, python3
, lib
# , setuptools-generate
}:

with python3.pkgs;

buildPythonPackage rec {
inherit (mySources.sublime-syntax-language-server) pname version src;
format = "pyproject";
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
pygls
platformdirs
beautifulsoup4
];
# nativeCheckInputs = [
# setuptools-generate
# ];
pythonImportsCheck = [
"sublime-syntax_language_server"
];

meta = with lib; {
homepage = "https://sublime-syntax-language-server.readthedocs.io";
description = "sublime-syntax language server";
license = licenses.gpl3;
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}
32 changes: 32 additions & 0 deletions pkgs/development/python-modules/termux-language-server/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ mySources
, python3
, lib
# , setuptools-generate
}:

with python3.pkgs;

buildPythonPackage rec {
inherit (mySources.termux-language-server) pname version src;
format = "pyproject";
disabled = pythonOlder "3.6";
propagatedBuildInputs = [
pygls
platformdirs
beautifulsoup4
];
# nativeCheckInputs = [
# setuptools-generate
# ];
pythonImportsCheck = [
"termux_language_server"
];

meta = with lib; {
homepage = "https://termux-language-server.readthedocs.io";
description = "termux build.sh language server";
license = licenses.gpl3;
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ buildPythonPackage rec {
homepage = "https://translate-shell.readthedocs.io";
description = "Translate text by google, bing, youdaozhiyun, haici, stardict, etc at same time from CLI, GUI (GNU/Linux, Android, macOS and Windows), REPL, python, shell and vim";
license = licenses.gpl3;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ Freed-Wu ];
platforms = platforms.unix;
};
}

0 comments on commit ea7b007

Please sign in to comment.