From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Pykhalov Subject: bug#29686: gnu: aspell: Do not ignore GuixOS system profile. Date: Wed, 13 Dec 2017 09:43:19 +0300 Message-ID: <87vahbgmbc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eP0ly-0008I7-NW for bug-guix@gnu.org; Wed, 13 Dec 2017 01:44:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eP0lv-00065j-Bc for bug-guix@gnu.org; Wed, 13 Dec 2017 01:44:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:50642) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eP0lv-00065d-82 for bug-guix@gnu.org; Wed, 13 Dec 2017 01:44:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eP0lv-000387-1o for bug-guix@gnu.org; Wed, 13 Dec 2017 01:44:03 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eP0lT-0008HY-6H for bug-guix@gnu.org; Wed, 13 Dec 2017 01:43:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eP0lQ-0005oU-M1 for bug-guix@gnu.org; Wed, 13 Dec 2017 01:43:35 -0500 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:35345) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eP0lQ-0005nm-DX for bug-guix@gnu.org; Wed, 13 Dec 2017 01:43:32 -0500 Received: by mail-lf0-x234.google.com with SMTP id j124so1400841lfg.2 for ; Tue, 12 Dec 2017 22:43:32 -0800 (PST) Received: from magnolia (ppp91-122-81-8.pppoe.avangarddsl.ru. [91.122.81.8]) by smtp.gmail.com with ESMTPSA id o86sm162138lja.2.2017.12.12.22.43.29 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Dec 2017 22:43:29 -0800 (PST) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 29686@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 ;; =E2=80=A6 (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" "" =3D ("${ASPELL_CONF:-\"dict-dir ${GUIX_PROFILE:-$HOME/.guix-= profile}/lib/aspell\"}"))))))))) ;; =E2=80=A6 )) I have a solution on top of existing wrapper, but what is a good way to implement the following? =2D-8<---------------cut here---------------start------------->8--- LIB_ASPELL=3Dlib/aspell HOME_PROFILE=3D$HOME/.guix-profile SYSTEM_PROFILE=3D/run/current-system/profile if [ -z ${GUIX_PROFILE} ]; then if [ -d $HOME_PROFILE/$LIB_ASPELL ]; then GUIX_PROFILE=3D$HOME_PROFILE elif [ -d $SYSTEM_PROFILE/$LIB_ASPELL ]; then GUIX_PROFILE=3D$SYSTEM_PROFILE fi fi export ASPELL_CONF=3D"${ASPELL_CONF:-"dict-dir ${GUIX_PROFILE}/lib/aspell"}" =2D-8<---------------cut here---------------end--------------->8--- Thanks, Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlowzAcACgkQckbhHGm3 lWlqvA//ROd2kxo67lWC3YquFA0DbiwzK9oAQFzkSrvfcGLkGLRPRQOh5aAvly0D /buDHRQmDm22vI85RxaX6yJDVozt6VoqhBADYHs9tsyOGIY+k/rNM1BT9T5yjQNV kphkIt0QLRomwHVVIiRJ352WYuIv7+njOp287zqewnH7xkeQkcNgnlX4E7v/s+O6 cKOHqc3DaCBEIWHl01KELTsqPsoUFhoQzS0fqn6Dqp+OWmemSP7+rn0nER8Dv4Ho lTjGcb8Ah4NG3bd/jFw8DgZx0D4Vpp+3YfQb9VhkSdaW4tzOLHxMDjd7hGMKcn+W rGKBaguXLt3TWNMI8uZF6zJP/d5LVUE/JtdTSHMGD8E11wwCruCYPG6pzIRqvVrz jhYb+lmWmHCaC7Oca3muhOzgCKx0lznpMGM27ISPA0g5D0dm3YCA3YLhnM1jX/Hk HWYnn5ussZKDNArKKi+5IGvYXnho4PUXyrWI+I09gwtvDBptMCRLUwhFTSzw75DC lG2GOOPICZQqZm/yYwredjG42QTyM42bLYuBTeG3LBO+N7zpjjjDiV4m6erCOPSb +oMr9uOpaTgyLF+GFLVjsEP8nMOduIAzX6Ge+TAstmplCtEWLNHpBV9DABxlmpTr WjFN/R7mBAfyTqjcsnMPYS2RcuyyM+BNeJz5Ih7vFLSUQAt/bxk= =wFiD -----END PGP SIGNATURE----- --=-=-=--