From e8f6a5ce341d3db1cb4c707eb58b3162f93353a3 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Fri, 25 Aug 2023 17:50:29 +0800 Subject: [PATCH] emacsWithPackages: do not symlink $emacs/share/emacs I see no reason to symlink this dir. Doing so may shadow unwanted libraries since the site-start.el of Emacs adds paths under NIX_PROFILES to load-path. It is added in [1] to fix "building emacs". However, I have no issue in building and using Emacs after removing it. [1]: https://github.com/NixOS/nixpkgs/pull/89351 --- pkgs/build-support/emacs/wrapper.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/emacs/wrapper.nix b/pkgs/build-support/emacs/wrapper.nix index bbfc35c94c41..2f8f15d7da54 100644 --- a/pkgs/build-support/emacs/wrapper.nix +++ b/pkgs/build-support/emacs/wrapper.nix @@ -224,7 +224,7 @@ runCommand mkdir -p $out/share # Link icons and desktop files into place - for dir in applications icons info man emacs; do + for dir in applications icons info man; do ln -s $emacs/share/$dir $out/share/$dir done ''