Currently just installing aspell (and a dictionary) doesn't work. This
fixes this situation.

Regards,
Fede
From e183f8e473b97406968ecbda9fb13ebdf60963ec Mon Sep 17 00:00:00 2001
From: Federico Beffa <[email protected]>
Date: Fri, 8 Jan 2016 14:23:12 +0100
Subject: [PATCH 11/11] gnu: aspell: Wrap binary to find dictionaries.

* gnu/packages/aspell.scm (aspell): Add 'wrap-aspell phase.
---
 gnu/packages/aspell.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/aspell.scm b/gnu/packages/aspell.scm
index 85d7cfa..79b57b5 100644
--- a/gnu/packages/aspell.scm
+++ b/gnu/packages/aspell.scm
@@ -38,6 +38,16 @@
        (base32
         "1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm"))))
     (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'wrap-aspell
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((bin/aspell (string-append (assoc-ref outputs "out")
+                                              "/bin/aspell")))
+               (wrap-program bin/aspell
+                 '("ASPELL_CONF" "" =
+                   ("${ASPELL_CONF:-\"dict-dir ${GUIX_PROFILE:-$HOME/.guix-profile}/lib/aspell\"}")))))))))
     (inputs `(("perl" ,perl)))
     (home-page "http://aspell.net/";)
     (synopsis "Spell checker")
-- 
2.6.3

Reply via email to