From: Oleg Pykhalov <go.wigust@gmail.com>
To: 29686@debbugs.gnu.org
Subject: bug#29686: gnu: aspell: Do not ignore GuixOS system profile.
Date: Wed, 13 Dec 2017 09:43:19 +0300 [thread overview]
Message-ID: <87vahbgmbc.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]
Hello Guix,
Currently, if aspell is installed in GuixOS system profile and not in
user profile then aspell cannot find dictionaries.
(define-public aspell
(package
;; …
(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\"}")))))))))
;; …
))
I have a solution on top of existing wrapper, but what is a good way to
implement the following?
--8<---------------cut here---------------start------------->8---
LIB_ASPELL=lib/aspell
HOME_PROFILE=$HOME/.guix-profile
SYSTEM_PROFILE=/run/current-system/profile
if [ -z ${GUIX_PROFILE} ]; then
if [ -d $HOME_PROFILE/$LIB_ASPELL ]; then
GUIX_PROFILE=$HOME_PROFILE
elif [ -d $SYSTEM_PROFILE/$LIB_ASPELL ]; then
GUIX_PROFILE=$SYSTEM_PROFILE
fi
fi
export ASPELL_CONF="${ASPELL_CONF:-"dict-dir ${GUIX_PROFILE}/lib/aspell"}"
--8<---------------cut here---------------end--------------->8---
Thanks,
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next reply other threads:[~2017-12-13 6:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-13 6:43 Oleg Pykhalov [this message]
2017-12-13 21:52 ` bug#29686: gnu: aspell: Do not ignore GuixOS system profile Ludovic Courtès
2017-12-20 13:14 ` Ludovic Courtès
2017-12-20 14:47 ` Oleg Pykhalov
2017-12-20 20:55 ` Ludovic Courtès
2019-11-13 17:51 ` Ludovic Courtès
2019-11-14 11:22 ` Pierre Neidhardt
2019-11-14 21:39 ` Ludovic Courtès
2019-10-17 13:04 ` Pierre Neidhardt
2019-10-26 11:02 ` Pierre Neidhardt
2019-10-27 22:31 ` Ludovic Courtès
2019-10-28 7:42 ` Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vahbgmbc.fsf@gmail.com \
--to=go.wigust@gmail.com \
--cc=29686@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).