gnu: aspell: Wrap binary to find dictionaries.
* gnu/packages/aspell.scm (aspell): Add 'wrap-aspell' phase. * gnu/system.scm (operating-system-etc-service): Remove 'ASPELL_CONF' definition. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
8c44dabc5a
commit
81fc64da7e
|
@ -38,6 +38,16 @@
|
||||||
(base32
|
(base32
|
||||||
"1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm"))))
|
"1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm"))))
|
||||||
(build-system gnu-build-system)
|
(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)))
|
(inputs `(("perl" ,perl)))
|
||||||
(home-page "http://aspell.net/")
|
(home-page "http://aspell.net/")
|
||||||
(synopsis "Spell checker")
|
(synopsis "Spell checker")
|
||||||
|
|
|
@ -465,9 +465,6 @@ else
|
||||||
export PATH=\"$HOME/.guix-profile/bin:$PATH\"
|
export PATH=\"$HOME/.guix-profile/bin:$PATH\"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Allow Aspell to find dictionaries installed in the user profile.
|
|
||||||
export ASPELL_CONF=\"dict-dir $HOME/.guix-profile/lib/aspell\"
|
|
||||||
|
|
||||||
# Allow GStreamer-based applications to find plugins.
|
# Allow GStreamer-based applications to find plugins.
|
||||||
export GST_PLUGIN_PATH=\"$HOME/.guix-profile/lib/gstreamer-1.0\"
|
export GST_PLUGIN_PATH=\"$HOME/.guix-profile/lib/gstreamer-1.0\"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue