diff options
author | Florian Friesdorf <flo@chaoflow.net> | 2012-01-03 20:58:54 +0000 |
---|---|---|
committer | Florian Friesdorf <flo@chaoflow.net> | 2012-01-03 20:58:54 +0000 |
commit | 195ff32a63a212fe222c91629eed8de71cd6255d (patch) | |
tree | 195a98d90114f07f7d343e9be2f3cd43b1aa9b7b /pkgs/applications/editors | |
parent | e43bd7c4cea2d642ff06cd584cf8c6de20643dcd (diff) |
set emacs load-path according to NIX_PROFILES via site-start.el
svn path=/nixpkgs/trunk/; revision=31252
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/emacs-23/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-23/default.nix b/pkgs/applications/editors/emacs-23/default.nix index 5de1b38bb41dd..312ced38c41de 100644 --- a/pkgs/applications/editors/emacs-23/default.nix +++ b/pkgs/applications/editors/emacs-23/default.nix @@ -31,6 +31,16 @@ stdenv.mkDerivation rec { ++ stdenv.lib.optional (stdenv ? glibc) [ "--with-crt-dir=${stdenv.glibc}/lib" ]; + postInstall = '' + cat >$out/share/emacs/site-lisp/site-start.el <<EOF +;; nixos specific load-path +(setq load-path + (append (reverse (mapcar (lambda (x) (concat x "/share/emacs/site-lisp/")) + (split-string (getenv "NIX_PROFILES")))) + load-path)) +EOF + ''; + doCheck = true; meta = { |