Emacs: Fix TRAMP by adjusting its path so that it finds ls and other binaries on NixOS systems

Close #1094.
This commit is contained in:
Benno Fünfstück 2013-10-19 21:06:26 +02:00 committed by Evgeny Egorochkin
parent 23479e1e25
commit 351c9e310d

View File

@ -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; {