Commit 4c98e71651e9

Vincent Demeester <vincent@sbr.pm>
2026-07-31 15:03:59
refactor(emacs): move gotest-ts into let block
Moved trivialBuild definition inside myExtraPackages to scope it closer to usage and simplify packageRequires.
1 parent 227d0d2
Changed files (1)
home
common
home/common/dev/emacs.nix
@@ -16,20 +16,22 @@ let
     #!${pkgs.stdenv.shell}
     emacsclient --create-frame $@
   '';
-  gotest-ts = pkgs.emacsPackages.trivialBuild {
-    pname = "gotest-ts";
-    version = "20260127.1547";
-    src = pkgs.fetchFromGitHub {
-      owner = "chmouel";
-      repo = "gotest-ts.el";
-      rev = "b12e08d925bab705792f14b29acdca9af550d9a8";
-      hash = "sha256-p921XuYnyls2uh5kyp8nfW0GRgm7IFsbyyujxgEkeBQ=";
-    };
-    packageRequires = with pkgs.emacsPackages; [ gotest ];
-  };
   myExtraPackages =
     epkgs:
     with epkgs;
+    let
+      gotest-ts = epkgs.trivialBuild {
+        pname = "gotest-ts";
+        version = "20260127.1547";
+        src = pkgs.fetchFromGitHub {
+          owner = "chmouel";
+          repo = "gotest-ts.el";
+          rev = "b12e08d925bab705792f14b29acdca9af550d9a8";
+          hash = "sha256-p921XuYnyls2uh5kyp8nfW0GRgm7IFsbyyujxgEkeBQ=";
+        };
+        packageRequires = [ gotest ];
+      };
+    in
     [
       acp
       age