about summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs/elisp-packages
diff options
context:
space:
mode:
authorKira Bruneau <kira.bruneau@pm.me>2023-06-07 08:02:11 -0400
committerKira Bruneau <kira.bruneau@pm.me>2023-06-07 13:00:01 -0400
commit3f9a4f843c4aa7554277fd622e86bf506455b919 (patch)
treecba698021b1bf09b4a943a968d19418d216f3c38 /pkgs/applications/editors/emacs/elisp-packages
parent53586cbb7f1394c19989203ba0eb9bc181acfbe4 (diff)
downloadnixlib-3f9a4f843c4aa7554277fd622e86bf506455b919.tar
nixlib-3f9a4f843c4aa7554277fd622e86bf506455b919.tar.gz
nixlib-3f9a4f843c4aa7554277fd622e86bf506455b919.tar.bz2
nixlib-3f9a4f843c4aa7554277fd622e86bf506455b919.tar.lz
nixlib-3f9a4f843c4aa7554277fd622e86bf506455b919.tar.xz
nixlib-3f9a4f843c4aa7554277fd622e86bf506455b919.tar.zst
nixlib-3f9a4f843c4aa7554277fd622e86bf506455b919.zip
lsp-bridge: 20230603.345 -> 20230607.135
Diffstat (limited to 'pkgs/applications/editors/emacs/elisp-packages')
-rw-r--r--pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/default.nix26
-rw-r--r--pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/hardcode-dependencies.patch19
2 files changed, 33 insertions, 12 deletions
diff --git a/pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/default.nix b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/default.nix
index 2ff13345999d..ae7eb76ee719 100644
--- a/pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/default.nix
+++ b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/default.nix
@@ -10,13 +10,14 @@
 , go
 , gopls
 , pyright
+, ruff
 , tempel
 , writeText
 , unstableGitUpdater
 }:
 
 let
-  rev = "8de85f9967fec6a8e447e5b5f3021e5e1f95b445";
+  rev = "6f93deb32ebb3799dfedd896a17a0428a9b461bb";
   python = python3.withPackages (ps: with ps; [
     epc
     orjson
@@ -26,24 +27,25 @@ let
 in
 melpaBuild {
   pname = "lsp-bridge";
-  version = "20230603.345"; # 3:45 UTC
+  version = "20230607.135"; # 1:35 UTC
 
   src = fetchFromGitHub {
     owner = "manateelazycat";
     repo = "lsp-bridge";
     inherit rev;
-    sha256 = "sha256-08DFgZaYdlz9f9eqZuG760vpmO3D4QN9V66YqVyVsV4=";
+    hash = "sha256-4AKKsU+yuLA9qv6mhYPpjBJ8wrbGPMuzN98JXcVPAHg=";
   };
 
   commit = rev;
 
-  # Hardcode the python dependencies needed for lsp-bridge, so users
-  # don't have to modify their global environment
-  postPatch = ''
-    substituteInPlace lsp-bridge.el --replace \
-     '(defcustom lsp-bridge-python-command (if (memq system-type '"'"'(cygwin windows-nt ms-dos)) "python.exe" "python3")' \
-     '(defcustom lsp-bridge-python-command "${python.interpreter}"'
-  '';
+  patches = [
+    # Hardcode the python dependencies needed for lsp-bridge, so users
+    # don't have to modify their global environment
+    (substituteAll {
+      src = ./hardcode-dependencies.patch;
+      python = python.interpreter;
+    })
+  ];
 
   packageRequires = [
     acm
@@ -51,13 +53,13 @@ melpaBuild {
     posframe
   ];
 
-  buildInputs = [ python ];
-
   checkInputs = [
     git
     go
     gopls
     pyright
+    python
+    ruff
     tempel
   ];
 
diff --git a/pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/hardcode-dependencies.patch b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/hardcode-dependencies.patch
new file mode 100644
index 000000000000..765a6c717770
--- /dev/null
+++ b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/hardcode-dependencies.patch
@@ -0,0 +1,19 @@
+diff --git a/lsp-bridge.el b/lsp-bridge.el
+index 3a7ff0b..ea5e496 100644
+--- a/lsp-bridge.el
++++ b/lsp-bridge.el
+@@ -326,13 +326,7 @@ Setting this to nil or 0 will turn off the indicator."
+   "Name of LSP-Bridge buffer."
+   :type 'string)
+ 
+-(defcustom lsp-bridge-python-command (cond ((memq system-type '(cygwin windows-nt ms-dos))
+-                                            (if (executable-find "pypy3.exe")
+-                                                "pypy3.exe"
+-                                              "python3.exe"))
+-                                           (t (if (executable-find "pypy3")
+-                                                  "pypy3"
+-                                                "python3")))
++(defcustom lsp-bridge-python-command "@python@"
+   "The Python interpreter used to run lsp_bridge.py."
+   :type 'string)
+