diff options
author | Vivien <vivien@pruneau.lan> | 2022-01-07 23:08:19 +0100 |
---|---|---|
committer | Vivien <vivien@pruneau.lan> | 2022-01-07 23:08:19 +0100 |
commit | 6cf7cae306176576c032916aae6fab1fa508ac69 (patch) | |
tree | 64d18e0120bf606212d088616b85839a0d974d2b | |
parent | 409ebb5b7e5eee77bcdf0c3dc134fcc4fd1ff2f3 (diff) |
No need to explicitely set the load path
-rw-r--r-- | vkraus/packages/blog.scm | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/vkraus/packages/blog.scm b/vkraus/packages/blog.scm index 3896cc5..958b36e 100644 --- a/vkraus/packages/blog.scm +++ b/vkraus/packages/blog.scm @@ -40,26 +40,17 @@ (lambda* (#:key outputs inputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (bash-in (search-input-file inputs "/bin/bash")) - (emacs-in (search-input-file inputs "/bin/emacs")) - (set-load-path - (let compose-load-path ((dirs (search-path-as-list - '("share/emacs/site-lisp") - (map cdr inputs))) - (set '())) - (if (null? dirs) - set - (compose-load-path (cdr dirs) `("-L" ,(car dirs))))))) + (emacs-in (search-input-file inputs "/bin/emacs"))) (mkdir out) (setenv "PREFIX" out) (setenv "HOME" ".home") (mkdir ".build") (with-directory-excursion ".build" - (apply invoke emacs-in "--batch" - `(,@set-load-path - "--file" "../init.org" - "--eval" "(setq org-confirm-babel-evaluate nil)" - "-f" "org-babel-tangle")) + (invoke emacs-in "--batch" + "--file" "../init.org" + "--eval" "(setq org-confirm-babel-evaluate nil)" + "-f" "org-babel-tangle") (invoke bash-in "../build")))))))) (native-inputs (list emacs bash jekyll emacs-org emacs-htmlize)) |