Merge pull request #219993 from kira-bruneau/emacsPackages.lsp-bridge

emacsPackages.lsp-bridge: init at 20230309.554
This commit is contained in:
Kira Bruneau 2023-03-12 11:23:12 -04:00 committed by GitHub
commit 38377899d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 141 additions and 0 deletions

View File

@ -5249,6 +5249,12 @@
githubId = 3036816;
name = "Edgar Aroutiounian";
};
fxttr = {
name = "Florian Büstgens";
email = "fb@fx-ttr.de";
github = "fxttr";
githubId = 16306293;
};
fzakaria = {
name = "Farid Zakaria";
email = "farid.m.zakaria@gmail.com";

View File

@ -5,6 +5,8 @@ let
inherit (self) callPackage;
in
{
acm = callPackage ./manual-packages/acm { };
agda-input = callPackage ./manual-packages/agda-input { };
agda2-mode = callPackage ./manual-packages/agda2-mode { };
@ -49,6 +51,10 @@ in
llvm-mode = callPackage ./manual-packages/llvm-mode { };
lsp-bridge = callPackage ./manual-packages/lsp-bridge {
inherit (pkgs) python3 git go gopls pyright;
};
matrix-client = callPackage ./manual-packages/matrix-client {
_map = self.map;
};

View File

@ -0,0 +1,32 @@
{ lib
, melpaBuild
, lsp-bridge
, yasnippet
, writeText
}:
melpaBuild {
pname = "acm";
version = lsp-bridge.version;
src = lsp-bridge.src;
commit = lsp-bridge.src.rev;
packageRequires = [
yasnippet
];
recipe = writeText "recipe" ''
(acm
:repo "manateelazycat/lsp-bridge"
:fetcher github
:files ("acm/*.el" "acm/icons"))
'';
meta = with lib; {
description = "Asynchronous Completion Menu";
homepage = "https://github.com/manateelazycat/lsp-bridge";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fxttr kira-bruneau ];
};
}

View File

@ -0,0 +1,97 @@
{ lib
, python3
, melpaBuild
, fetchFromGitHub
, substituteAll
, acm
, markdown-mode
, posframe
, git
, go
, gopls
, pyright
, tempel
, writeText
, unstableGitUpdater
}:
let
rev = "c5dc02f6bd47039c320083b3befac0e569c0efa4";
python = python3.withPackages (ps: with ps; [
epc
orjson
sexpdata
six
]);
in
melpaBuild {
pname = "lsp-bridge";
version = "20230311.1648"; # 16:48 UTC
src = fetchFromGitHub {
owner = "manateelazycat";
repo = "lsp-bridge";
inherit rev;
sha256 = "sha256-vbSVGPFBjAp4VRbJc6a2W0d2IqOusNa+rk4X6jRcjRI=";
};
commit = rev;
# Hardcode the python dependencies needed for lsp-bridge, so users
# don't have to modify their global environment
postPatch = ''
substituteInPlace lsp-bridge.el --replace \
'(defcustom lsp-bridge-python-command (if (memq system-type '"'"'(cygwin windows-nt ms-dos)) "python.exe" "python3")' \
'(defcustom lsp-bridge-python-command "${python.interpreter}"'
'';
packageRequires = [
acm
markdown-mode
posframe
];
buildInputs = [ python ];
checkInputs = [
git
go
gopls
pyright
tempel
];
recipe = writeText "recipe" ''
(lsp-bridge
:repo "manateelazycat/lsp-bridge"
:fetcher github
:files
("*.el"
"lsp_bridge.py"
"core"
"langserver"
"multiserver"
"resources"))
'';
doCheck = true;
checkPhase = ''
runHook preCheck
cd "$sourceRoot"
mkfifo test.log
cat < test.log &
HOME=$(mktemp -d) python -m test.test
runHook postCheck
'';
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "A blazingly fast LSP client for Emacs";
homepage = "https://github.com/manateelazycat/lsp-bridge";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fxttr kira-bruneau ];
};
}