From 416e15f7eb5f710690fdb9ee1767980efb84c30a Mon Sep 17 00:00:00 2001 From: figsoda Date: Thu, 21 Sep 2023 19:29:46 -0400 Subject: [PATCH] postgres-lsp: unstable-2023-08-23 -> unstable-2023-09-21 Diff: https://github.com/supabase/postgres_lsp/compare/47dd0132b12661ab6c97f5fba892e567a5109c84...f25f23a683c4e14dea52e3e423584588ab349081 --- .../language-servers/postgres-lsp/default.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/language-servers/postgres-lsp/default.nix b/pkgs/development/tools/language-servers/postgres-lsp/default.nix index e1bc93d4e246..167b86216f30 100644 --- a/pkgs/development/tools/language-servers/postgres-lsp/default.nix +++ b/pkgs/development/tools/language-servers/postgres-lsp/default.nix @@ -6,16 +6,25 @@ rustPlatform.buildRustPackage rec { pname = "postgres-lsp"; - version = "unstable-2023-08-23"; + version = "unstable-2023-09-21"; - src = fetchFromGitHub { + src = (fetchFromGitHub { owner = "supabase"; repo = "postgres_lsp"; - rev = "47dd0132b12661ab6c97f5fba892e567a5109c84"; - hash = "sha256-aV3QAp6DkNrHiDe1Ytiu6UyTWrelV6vO83Baiv4ONLg="; + rev = "f25f23a683c4e14dea52e3e423584588ab349081"; + hash = "sha256-z8WIUfgnPYdzhBit1V6A5UktjoYCblTKXxwpbHOmFJA="; + fetchSubmodules = true; + }).overrideAttrs { + # workaround to be able to fetch git@github.com submodules + # https://github.com/NixOS/nixpkgs/issues/195117 + env = { + GIT_CONFIG_COUNT = 1; + GIT_CONFIG_KEY_0 = "url.https://github.com/.insteadOf"; + GIT_CONFIG_VALUE_0 = "git@github.com:"; + }; }; - cargoHash = "sha256-9d/KiQ7IXhmYvTb97FKJh/cGTdnxAgCXSx4+V74b+RE="; + cargoHash = "sha256-Nyxiere6/e5Y7YcgHitVkaiS1w3JXkbohIcBNc00YXY="; nativeBuildInputs = [ protobuf