mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
Merge pull request #250982 from figsoda/pg
postgres-lsp: init at unstable-2023-08-08
This commit is contained in:
commit
705691afb9
1605
pkgs/development/tools/language-servers/postgres-lsp/Cargo.lock
generated
Normal file
1605
pkgs/development/tools/language-servers/postgres-lsp/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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";
|
||||
};
|
||||
}
|
@ -18460,6 +18460,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 {
|
||||
|
Loading…
Reference in New Issue
Block a user