From 351c9e310d04e38ae87e0e37ab82de61b319d043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= Date: Sat, 19 Oct 2013 21:06:26 +0200 Subject: [PATCH] Emacs: Fix TRAMP by adjusting its path so that it finds ls and other binaries on NixOS systems Close #1094. --- pkgs/applications/editors/emacs-24/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/emacs-24/default.nix b/pkgs/applications/editors/emacs-24/default.nix index 0dcb585e12e..18e263dae67 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; {