Merge pull request #305882 from marsam/update-lsp-bridge

emacsPackages.lsp-bridge: 20231021.309 -> 20240423.38
This commit is contained in:
Kira Bruneau 2024-04-22 22:40:45 -04:00 committed by GitHub
commit 093698a9fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 20 additions and 5 deletions

View File

@ -11,12 +11,12 @@
, pyright
, ruff
, tempel
, writeScript
, writeText
, unstableGitUpdater
}:
let
rev = "0b30d95c6de95b150d93ecee325b95e04ff09e46";
rev = "4d18701bdef13f6bdc0ad58d26896dff0548dbab";
python = python3.withPackages (ps: with ps; [
epc
orjson
@ -28,13 +28,13 @@ let
in
melpaBuild {
pname = "lsp-bridge";
version = "20231021.309"; # 3:09 UTC
version = "20240423.38";
src = fetchFromGitHub {
owner = "manateelazycat";
repo = "lsp-bridge";
inherit rev;
hash = "sha256-hR7bZh0ElJ8F9ToJ4dkazF19T8PE01MTcxKrjeaEp4o=";
hash = "sha256-6taxbsu5v/mQBwl0CPt/fsTQpclNhi2alp/xIh5omJA=";
};
commit = rev;
@ -88,7 +88,22 @@ melpaBuild {
runHook postCheck
'';
passthru.updateScript = unstableGitUpdater { };
passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p common-updater-scripts coreutils git gnused
set -eu -o pipefail
tmpdir="$(mktemp -d)"
git clone --depth=1 https://github.com/manateelazycat/lsp-bridge.git "$tmpdir"
pushd "$tmpdir"
commit=$(git show -s --pretty='format:%H')
# Based on: https://github.com/melpa/melpa/blob/2d8716906a0c9e18d6c979d8450bf1d15dd785eb/package-build/package-build.el#L523-L533
version=$(TZ=UTC git show -s --pretty='format:%cd' --date='format-local:%Y%m%d.%H%M' | sed 's|\.0*|.|')
popd
update-source-version emacsPackages.lsp-bridge $version --rev="$commit"
'';
meta = with lib; {
description = "A blazingly fast LSP client for Emacs";