Commit b886e5a6af7c

Vincent Demeester <vincent@sbr.pm>
2026-06-29 11:18:54
feat(emacs): switched ytr to nix package
Replaced package-vc install of ytr with nixpkgs package and removed the vc-git workaround that was needed for it.
1 parent a348932
Changed files (3)
dots
config
emacs
home
common
pkgs
dots/config/emacs/init.el
@@ -3387,11 +3387,7 @@ With \\[universal-argument] \\[universal-argument]: always prompt with completio
   (proced-format 'medium) ;; can be changed interactively with `F'
   (proced-filter 'user))  ;; can be changed interactively with `f'
 
-;; package-vc (:vc below) needs the Git backend, but early-init.el sets
-;; vc-handled-backends to nil during startup (restored in after-init-hook).
-(eval-and-compile (require 'vc-git) (add-to-list 'vc-handled-backends 'Git))
 (use-package ytr
-  :vc (:url "https://github.com/xenodium/ytr" :rev :newest)
   :commands (ytr)
   :bind ("C-c m y" . ytr))
 
home/common/dev/emacs.nix
@@ -106,6 +106,7 @@ let
       popper
       rg
       ready-player
+      pkgs.ytr
       scopeline
       shr-tag-pre-highlight
       surround
pkgs/default.nix
@@ -77,6 +77,16 @@ in
     };
   };
 
+  ytr = compileEmacsFiles {
+    name = "ytr";
+    src = pkgs.fetchFromGitHub {
+      owner = "xenodium";
+      repo = "ytr";
+      rev = "14ac0834cce7aff4498b08447a3c96f6e6dc6ec5";
+      hash = "sha256-E3bkDtbLoEkXs8eQ3jDS7uhBEVdnHRywrr7I49FUb7c=";
+    };
+  };
+
   phscroll = compileEmacsFiles {
     name = "phscroll";
     src = pkgs.fetchFromGitHub {