about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-12-13T15·53+0300
committerVincent Ambo <mail@tazj.in>2021-12-13T15·53+0300
commit0fbd6f0aebc02fbdcbc363dd65c075206fb6fb72 (patch)
tree2eb1aeef069151d0b22507c45e7cb546c1333eee /users
parentdb117176f2f25d78a5dd43e05fb2026c8564ac32 (diff)
fix(tazjin/emacs): Use telega from MELPA r/3215
The stable versions are too old to be compatible with nixpkgs-unstable

Change-Id: I8edb125024460f605ff640cd486779877fa0d256
Diffstat (limited to 'users')
-rw-r--r--users/tazjin/emacs/default.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/users/tazjin/emacs/default.nix b/users/tazjin/emacs/default.nix
index 48805a42f220..a13a697648ee 100644
--- a/users/tazjin/emacs/default.nix
+++ b/users/tazjin/emacs/default.nix
@@ -13,8 +13,12 @@ pkgs.makeOverridable({ emacs ? pkgs.emacsGcc }:
 let
   emacsWithPackages = (pkgs.emacsPackagesGen emacs).emacsWithPackages;
 
+  # If switching telega versions, use this variable because it will
+  # keep the version check, binary path and so on in sync.
+  currentTelega = epkgs: epkgs.melpaPackages.telega;
+
   # $PATH for binaries that need to be available to Emacs
-  emacsBinPath = lib.makeBinPath [ pkgs.emacsPackages.telega ];
+  emacsBinPath = lib.makeBinPath [ (currentTelega pkgs.emacsPackages) ];
 
   identity = x: x;
 
@@ -75,7 +79,6 @@ let
     sly
     string-edit
     swiper
-    telega
     telephone-line
     terraform-mode
     toml-mode
@@ -91,6 +94,9 @@ let
     yaml-mode
     yasnippet
 
+    # Wonky stuff
+    (currentTelega epkgs)
+
     # Custom depot packages (either ours, or overridden ones)
     tvlPackages.dottime
     tvlPackages.nix-util