From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH] gnu: aspell: Wrap binary to find dictionaries. Date: Sat, 09 Jan 2016 18:43:45 +0300 Message-ID: <87ziweoj0u.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHvgB-0004yN-Bw for guix-devel@gnu.org; Sat, 09 Jan 2016 10:43:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHvg8-0001p7-48 for guix-devel@gnu.org; Sat, 09 Jan 2016 10:43:47 -0500 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:34353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHvg7-0001ov-T9 for guix-devel@gnu.org; Sat, 09 Jan 2016 10:43:44 -0500 Received: by mail-lf0-x231.google.com with SMTP id d17so27008502lfb.1 for ; Sat, 09 Jan 2016 07:43:43 -0800 (PST) In-Reply-To: (Federico Beffa's message of "Sat, 9 Jan 2016 11:46:20 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Federico Beffa Cc: Guix-devel Federico Beffa (2016-01-09 13:46 +0300) wrote: > Currently just installing aspell (and a dictionary) doesn't work. This > fixes this situation. It works on GuixSD, because /etc/profile sets ASPELL_CONF, so if this patch will be accepted, I think 'operating-system-etc-service' from (gnu system) module should also be adjusted. > From e183f8e473b97406968ecbda9fb13ebdf60963ec Mon Sep 17 00:00:00 2001 > From: Federico Beffa > 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\"}"))))))))) Just to clarify: what if I would like to run aspell with my own ASPELL_CONF. Will it work or will this default value override my own? I mean I want to run aspell like this: ASPELL_CONF= aspell Will aspell be started with my ? -- Alex