summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>2013-10-19 21:06:26 +0200
committerEvgeny Egorochkin <phreedom@yandex.ru>2013-10-22 09:56:43 +0300
commit351c9e310d04e38ae87e0e37ab82de61b319d043 (patch)
tree283c7d747d86f785ec968999f772ed28e330a8e5 /pkgs/applications
parent23479e1e25b3fee4483db1cee1164dd55260a64f (diff)
downloadnixlib-351c9e310d04e38ae87e0e37ab82de61b319d043.tar
nixlib-351c9e310d04e38ae87e0e37ab82de61b319d043.tar.gz
nixlib-351c9e310d04e38ae87e0e37ab82de61b319d043.tar.bz2
nixlib-351c9e310d04e38ae87e0e37ab82de61b319d043.tar.lz
nixlib-351c9e310d04e38ae87e0e37ab82de61b319d043.tar.xz
nixlib-351c9e310d04e38ae87e0e37ab82de61b319d043.tar.zst
nixlib-351c9e310d04e38ae87e0e37ab82de61b319d043.zip
Emacs: Fix TRAMP by adjusting its path so that it finds ls and other binaries on NixOS systems
Close #1094.
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/editors/emacs-24/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/editors/emacs-24/default.nix b/pkgs/applications/editors/emacs-24/default.nix
index 0dcb585e12e9..18e263dae67e 100644
--- a/pkgs/applications/editors/emacs-24/default.nix
+++ b/pkgs/applications/editors/emacs-24/default.nix
@@ -46,11 +46,12 @@ stdenv.mkDerivation rec {
                           (append (reverse (mapcar (lambda (x) (concat x "/share/emacs/site-lisp/"))
                                                    (split-string (getenv "NIX_PROFILES"))))
                            load-path)))
+        
+    ;; make tramp work for NixOS machines
+    (eval-after-load 'tramp '(add-to-list 'tramp-remote-path "/run/current-system/sw/bin"))
     EOF
   '';
 
-
-
   doCheck = true;
 
   meta = with stdenv.lib; {