postgres-lsp: init at unstable-2023-08-08

https://github.com/supabase/postgres_lsp
This commit is contained in:
figsoda 2023-08-23 10:00:30 -04:00
parent 502302d4d6
commit 9845d9b1e7
3 changed files with 1650 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,43 @@
{ lib
, rustPlatform
, fetchFromGitHub
, protobuf
}:
rustPlatform.buildRustPackage rec {
pname = "postgres-lsp";
version = "unstable-2023-08-08";
src = fetchFromGitHub {
owner = "supabase";
repo = "postgres_lsp";
rev = "1250f5ed14a0e86b2b7fa581214284c67b960621";
hash = "sha256-Y43sTgKNcAI3h6McDc0g6o9CX6jOKBfURLWyjJhvmwk=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
# Cargo.lock is ignored
# https://github.com/supabase/postgres_lsp/pull/28
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
nativeBuildInputs = [
protobuf
rustPlatform.bindgenHook
];
cargoBuildFlags = [ "-p=postgres_lsp" ];
cargoTestFlags = cargoBuildFlags;
meta = with lib; {
description = "A Language Server for Postgres";
homepage = "https://github.com/supabase/postgres_lsp";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "postgres_lsp";
};
}

View File

@ -18458,6 +18458,8 @@ with pkgs;
openscad-lsp = callPackage ../development/tools/language-servers/openscad-lsp { };
postgres-lsp = callPackage ../development/tools/language-servers/postgres-lsp { };
pylyzer = callPackage ../development/tools/language-servers/pylyzer { };
rnix-lsp = callPackage ../development/tools/language-servers/rnix-lsp {