about summary refs log tree commit diff
path: root/pkgs/build-support/emacs
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2023-08-18 04:49:33 -0400
committerShea Levy <shea@shealevy.com>2023-08-18 04:49:33 -0400
commitbf7a81d8ddb8beb92609fad6a4dc78996b4e4b73 (patch)
tree0b34dff02b13afe6777f5582b2971517373dfd5d /pkgs/build-support/emacs
parent994f2560d0931b1714f5ae6e86dbd567dd70f8d8 (diff)
nixBufferBuilders: Don't assume the user has used eshell
Diffstat (limited to 'pkgs/build-support/emacs')
-rw-r--r--pkgs/build-support/emacs/buffer.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/emacs/buffer.nix b/pkgs/build-support/emacs/buffer.nix
index 9ef77a375574b..48a7996916e8d 100644
--- a/pkgs/build-support/emacs/buffer.nix
+++ b/pkgs/build-support/emacs/buffer.nix
@@ -45,7 +45,7 @@ rec {
       (setenv "PATH" (concat "${lib.makeSearchPath "bin" pkgs}:" (getenv "PATH")))
       (inherit-local-permanent exec-path (append '(${builtins.concatStringsSep " " (map (p: "\"${p}/bin\"") pkgs)}) exec-path))
 
-      (inherit-local-permanent eshell-path-env (concat "${lib.makeSearchPath "bin" pkgs}:" eshell-path-env))
+      (inherit-local-permanent eshell-path-env (concat "${lib.makeSearchPath "bin" pkgs}:" (if (boundp 'eshell-path-env) eshell-path-env (getenv "PATH"))))
 
       (setq nixpkgs--is-nixpkgs-buffer t)
       (inherit-local 'nixpkgs--is-nixpkgs-buffer)