vscode-extensions.saoudrizwan.claude-dev: 3.1.11 -> 3.2.5 (#375877)
[NixPkgs.git] / pkgs / by-name / po / postgres-lsp / package.nix
blobb2927a6600cf8afde24d7fa8557d17187ad6c054
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   protobuf,
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "postgres-lsp";
10   version = "0-unstable-2024-03-24";
12   src = fetchFromGitHub {
13     owner = "supabase";
14     repo = "postgres_lsp";
15     rev = "43ca9b675cb152ca7f38cfa6aff6dd2131dfa9a2";
16     hash = "sha256-n7Qbt9fGzC0CcleAtTWDInPz4oaPjI+pvIPrR5EYJ9U=";
17     fetchSubmodules = true;
18   };
20   cargoHash = "sha256-UEcHlkbYMA6xETMryWXsDHyAZYtLncRJn2jA6tvw7gQ=";
22   nativeBuildInputs = [
23     protobuf
24     rustPlatform.bindgenHook
25   ];
27   cargoBuildFlags = [ "-p=postgres_lsp" ];
28   cargoTestFlags = cargoBuildFlags;
30   RUSTC_BOOTSTRAP = 1; # We need rust unstable features
32   meta = with lib; {
33     description = "Language Server for Postgres";
34     homepage = "https://github.com/supabase/postgres_lsp";
35     license = licenses.mit;
36     maintainers = with maintainers; [ figsoda ];
37     mainProgram = "postgres_lsp";
38   };