From 5583067fd8cef883aa75200fb4160e0909f3c8f8 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Sun, 17 May 2015 14:15:39 -0500 Subject: [PATCH] emacsWithPackages: install support files The wrapper needs to link the desktop file, icons, info and man pages into place so they will appear when emacsWithPackages is installed. --- pkgs/build-support/emacs/wrapper.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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; }