diff options
author | Vincent Ambo <mail@tazj.in> | 2021-04-13T22·28+0200 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-04-13T22·56+0000 |
commit | 8f59300ae815247148b501d99858bce3ec65fe7f (patch) | |
tree | 0fb972bee7b06294beb70ccaf4455e3844cfadca /users | |
parent | f6e59dc09a2b60840d53a960e46f0075d6479c97 (diff) |
feat(tazjin/emacs): Make my Emacs binary overridable r/2506
... but keep defaulting to standard Emacs27, for $reasons Change-Id: Ife243ab18a03e6b0270a39c639cc493d71240362 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3007 Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
Diffstat (limited to 'users')
-rw-r--r-- | users/tazjin/emacs/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/users/tazjin/emacs/default.nix b/users/tazjin/emacs/default.nix index 4babc106dd48..609b98ba25eb 100644 --- a/users/tazjin/emacs/default.nix +++ b/users/tazjin/emacs/default.nix @@ -9,8 +9,9 @@ # render images correctly. { lib, pkgs, ... }: +pkgs.makeOverridable({ emacs ? pkgs.emacs27 }: let - emacsWithPackages = (pkgs.emacsPackagesGen pkgs.emacs27).emacsWithPackages; + emacsWithPackages = (pkgs.emacsPackagesGen emacs).emacsWithPackages; # $PATH for binaries that need to be available to Emacs emacsBinPath = lib.makeBinPath [ pkgs.emacsPackages.telega ]; @@ -141,3 +142,4 @@ in lib.fix(self: l: f: pkgs.writeShellScriptBin "tazjins-emacs" '' --eval "(require 'init)" $@ ''; }) null identity +) {} |