summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/default.nix
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/manual-packages/lsp-bridge/default.nix
parent53586cbb7f1394c19989203ba0eb9bc181acfbe4 (diff)
downloadnixpkgs-3f9a4f843c4aa7554277fd622e86bf506455b919.tar
nixpkgs-3f9a4f843c4aa7554277fd622e86bf506455b919.tar.gz
nixpkgs-3f9a4f843c4aa7554277fd622e86bf506455b919.tar.bz2
nixpkgs-3f9a4f843c4aa7554277fd622e86bf506455b919.tar.lz
nixpkgs-3f9a4f843c4aa7554277fd622e86bf506455b919.tar.xz
nixpkgs-3f9a4f843c4aa7554277fd622e86bf506455b919.tar.zst
nixpkgs-3f9a4f843c4aa7554277fd622e86bf506455b919.zip
lsp-bridge: 20230603.345 -> 20230607.135
Diffstat (limited to 'pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/default.nix')
-rw-r--r--pkgs/applications/editors/emacs/elisp-packages/manual-packages/lsp-bridge/default.nix26
1 files changed, 14 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 2ff13345999..ae7eb76ee71 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
   ];