summary refs log tree commit diff
path: root/pkgs/build-support/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/emacs')
-rw-r--r--pkgs/build-support/emacs/wrapper.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/build-support/emacs/wrapper.nix b/pkgs/build-support/emacs/wrapper.nix
index 678ba4502112..4020a1aca337 100644
--- a/pkgs/build-support/emacs/wrapper.nix
+++ b/pkgs/build-support/emacs/wrapper.nix
@@ -66,6 +66,12 @@ stdenv.mkDerivation {
       makeWrapper "$prog" $out/bin/$(basename "$prog") \
         --suffix EMACSLOADPATH ":" "$out/share/emacs/site-lisp:"
     done
+
+    mkdir -p $out/share
+    # Link icons and desktop files into place
+    for dir in applications icons info man; do
+      ln -s $emacs/share/$dir $out/share/$dir
+    done
   '';
   inherit (emacs) meta;
 }